# Command Line Tool

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.

{% code title="Send Tokens" overflow="wrap" %}

```shell
pandocli tx send --chain="privatenet" --from=0x2E833968E5bB786Ae419c4d13189fB081Cc43bab --to={your account address} --pando=0 --ptx=20 --seq=2 --password=qwertyuiop
```

{% endcode %}

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).

{% code title="To check balance" %}

```shell
pandocli query account --address=9F1233798E905E173560071255140b4A8aBd3Ec6
```

{% endcode %}

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.

{% code title="Send Tokens" overflow="wrap" %}

```shell
pandocli tx send --chain="privatenet" --from=98fd878cd2267577ea6ac47bcb5ff4dd97d2f9e5 --to=9F1233798E905E173560071255140b4A8aBd3Ec6 --pando=0 –ptx=20 --seq=2
```

{% endcode %}

We can query the recipient address again to verify the account balance changes.

```shell
pandocli query account --address=9F1233798E905E173560071255140b4A8aBd3Ec6
```

## 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:

1. Pandocli key new Create a new account with a password. The newly created key is encrypted and stored under \~/.pandocli/keys/encrypted/ by default

```shell
go/bin/pandocli key new
```

2\.  Pandocli key list List all the accounts managed by the wallet.

```shell
~/go/bin$ ./pandocli key list
```

3\. Pandocli key password

&#x20;   Reset the password for the account. You will need the current password for the reset.

```shell
~/go/bin$ ./pandocli  key password 0x268D0591e3DE6425Be249EA28022e833aA37D035
```

4\. Pandocli key delete

&#x20;  Delete the account. You will need the password for the account for the deletion.

```shell
~/go/bin$ ./pandocli  key delete 0x268D0591e3DE6425Be249EA28022e833aA37D035
```

## CLI Command Documentation

Please refer to the following links for the detailed usage of the command line tool.

<table><thead><tr><th width="587">Link</th><th>Binary</th></tr></thead><tbody><tr><td><a href="https://github.com/pandoprojects/pando-network-protocol/blob/main/docs/commands/wallet/pandocli.md"><strong>Pando Wallet command Line tool</strong></a></td><td>pandocli</td></tr><tr><td><a href="https://github.com/pandoprojects/pando-network-protocol/blob/main/docs/commands/ledger/pando.md"><strong>Pando Blockchain Node</strong></a></td><td>pando</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pandoproject.org/pando-network-docs/blockchain-integration/command-line-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
