Command Line Tool
Pandocli: Command Line Wallet
The Pando ledger software provides a command line wallet tool Pandocli for users to interact with the Pando ledger. Below is an example of sending tokens between two addresses.
Send and Receive Tokens
After building the Pando ledger, two binaries pando and pandocli are generated. pando can be regarded as the launcher of the Pando Ledger node, and pandocli is a wallet with command line tools to interact with the ledger. We can use the pandocli command line tool to send Pando tokens from one address to another by executing the following command. Open a terminal, and execute the following command. When the prompt asks for a password, simply enter chandanlunthi21.
The balance of an address can be retrieved with the following query command, after the transaction has been included in the blockchain (may take a couple of seconds).
Now let us send 20 more Pando tokens. Note that we need to increment the seq parameter to 2. The seq parameter is a transaction counter for each account, similar to the nonce parameter for Ethereum transactions. Each time we send tokens from an account, we need to increment the seq by 1.
We can query the recipient address again to verify the account balance changes.
Account/Wallet Management
The Pando command line tool can be used as a wallet, which can manage multiple accounts with the keys encrypted. Below are the relevant commands:
Pandocli key new Create a new account with a password. The newly created key is encrypted and stored under ~/.pandocli/keys/encrypted/ by default
2. Pandocli key list List all the accounts managed by the wallet.
3. Pandocli key password
Reset the password for the account. You will need the current password for the reset.
4. Pandocli key delete
Delete the account. You will need the password for the account for the deletion.
CLI Command Documentation
Please refer to the following links for the detailed usage of the command line tool.
Link | Binary |
---|---|
pandocli | |
pando |
Last updated