# Use the -a flag to display the addres onlysecretclikeysshow-a<key-alias>
You can also supply your address with the following command:
# This grabs the desired acount address and uses it as an input to the # secretcli query bank balances commandsecretcliquerybankbalances $(secretclikeysshow-a<key-alias>)
Note: When querying an account balance with zero tokens, you will get the error: No account with address <secret-address> was found in the state. This can also happen if you fund the account before your node is fully synced. These are both normal.
Send Tokens
Use the following command to send tokens from one account to another:
Note: The amount argument accepts the format <value|coin_name>. You may want to cap the maximum gas consumed by transactions via the --gas flag.
If you pass --gas=auto, the gas supply is automatically estimated before transaction execution.
Inaccurate gas estimates may occur in-between the end of the simulation and the actual execution of a transaction. An adjustment needs to be applied on top of the original estimate for the transaction to be broadcasted successfully. Adjustment are controlled via the --gas-adjustment flag, with a default value of 1.0.
To view updated balances of origin and destination accounts use:
secretcli query bank balances <secret-address>
secretcli query bank balances <recipient-address>
Flags
Height
You can also check balances at any block height using the --height flag:
secretcli tx bank send \ secret1kcy20p0cs2wakeqz00xgs5m0cmj65283xqmvfs \ secret193w2cdzhjt9vf9ehw9clmmyg5jvnj7dslaqcd0 \10uscrt \ --note 'Hello this is a test' | jqconfirm transaction before signing and broadcasting [y/N]: y{"height":"0","txhash":"9E41B419CAFDC245706B0B6C689299AFEF932F2864F88F6FBA417DE516F39B2A","codespace":"","code":0,"data":"","raw_log":"[]","logs": [],"info":"","gas_wanted":"0","gas_used":"0","tx":null,"timestamp":"","events": []}
Dry Run
You can simulate a transaction without actually broadcasting it by appending the --dry-run flag:
Note: The --generate-only flag prevents secretcli from accessing the local keybase. When the flag is supplied <sender-key-alias-or-address> must be an address.
Validate Signatures
You can validate transaction signatures by typing the following: