npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aeternity/aepp-cli

v6.0.1

Published

Aeternity command line interface

Downloads

132

Readme

aepp-cli-js

Command Line Interface for the æternity blockchain.

Installation

You can install aecli using your preferred tool (yarn or npm). Here's an npm example

$ npm install --global @aeternity/aepp-cli

Quick start

Let's ensure that CLI installed correctly by running $ aecli. It will show the available commands as below.

$ aecli
Usage: aecli [options] [command]

Options:
  -V, --version                                 output the version number
  -h, --help                                    display help for command

Commands:
  account                                       handle wallet operations
  spend [options] <wallet> <receiver> <amount>  send coins to another account or contract
  name                                          manage AENS names
  contract                                      contract interactions
  oracle                                        interact with oracles
  chain                                         make a request to the node
  inspect [options] <identifier>                get details of a node entity
  tx                                            generate transactions to sign and submit manually
  config [options]                              print the current sdk configuration
  select-node [nodeUrl]                         specify node to use in other commands
  select-compiler [compilerUrl]                 specify compiler to use in other commands
  help [command]                                display help for command

To read documentation of other commands and sub-commands, you can append --help. For example, type aecli account --help to get a list of commands available in account module.

The next step is to create a wallet to use in other commands:

$ aecli account create ./wallet.json
Address _________________________________ ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E
Path ____________________________________ /path/to/wallet.json

You need to send some coins to the created wallet.

On testnet you can do that using faucet. Switch to testnet using $ aecli select-node.

Run $ aecli inspect <wallet address> to ensure that it got coins.

$ aecli inspect ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E
Account ID ______________________________ ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E
Account balance _________________________ 10000ae
Account nonce ___________________________ 0
No pending transactions

At the last step, we will send our coins to another account:

$ aecli spend ./wallet.json ak_AgV756Vfo99juwzNVgnjP1gXX1op1QN3NXTxvkPnHJPUDE8NT 42ae
Transaction mined
Transaction hash ________________________ th_2muLsbZeFaVJ3tePTnLqobPhxBzwFsm1zUv8sjgMX4LKuevX2T
Block hash ______________________________ mh_dnoULQWpiRtcrntd5yJPUxcu7YrTu18xZ1e9EC2b8prKdShME
Block height ____________________________ 2 (about now)
Signatures ______________________________ ["sg_SG5uW5KEGiy5iG1cCkKq4VEdpyvewcW4NjVf4vj2ZoCiap5iB7UQoknWpyWsD4FkziBuGPE88zwXemq3ZvPrdzNtXtKuD"]
Transaction type ________________________ SpendTx (ver. 1)
Sender address __________________________ ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E
Recipient address _______________________ ak_AgV756Vfo99juwzNVgnjP1gXX1op1QN3NXTxvkPnHJPUDE8NT
Amount __________________________________ 42ae
Payload _________________________________ ba_Xfbg4g==
Fee _____________________________________ 0.00001684ae
Nonce ___________________________________ 1
TTL _____________________________________ 4 (about now)

Find out more in the user guide.

Resources

Commands reference

  • account
    • sign — sign a transaction using wallet
    • sign-message — sign a personal message using wallet
    • verify-message — check if message was signed by address
    • address — get wallet address and optionally private key
    • create — create a wallet by a private key or generate a new one
  • spend — send coins to another account or contract
  • name
    • full-claim — claim an AENS name in a single command
    • pre-claim — pre-claim an AENS name
    • claim — claim an AENS name (requires pre-claim)
    • bid — bid on name in auction
    • update — update a name pointer
    • extend — extend name TTL
    • revoke — revoke an AENS name
    • transfer — transfer a name to another account
  • contract
  • oracle
  • chain
    • top — query the top key/micro block of the chain
    • status — query node version, network id, and related details of the selected node
    • ttl — get relative TTL by absolute TTL
    • play — prints blocks from top until condition
    • broadcast — send signed transaction to the chain
  • inspect — get details of a node entity
  • tx
  • config — print the current sdk configuration
  • select-node — specify node to use in other commands
  • select-compiler — specify compiler to use in other commands