x/bank
Transactions
tx bank send [from_key_or_address] [to_address] [amount]
You can transfer tokens to a designated address by the tx bank send command. For example, we can send 10 nshr from address_a to address_b by
$ shareledger tx bank send <address_a> <address_b> 10nshr --chain-id <chain-id>
## Transaction payload
{"body":{"messages":[{"@type":"/cosmos.bank.v1beta1.MsgSend","from_address"....}
confirm transaction before signing and broadcasting [y/N]: y
Queries
query bank balances [address]
One can check the current balance of a specified account by:
$ shareledger query bank balances <address> --output json
{
    "balances": [
        {
            "denom": "nshr",
            "amount": "[token_balance]"
        }
    ],
    "pagination": {
        "next_key": null,
        "total": "0"
    }
}
query bank denom-metadata
You can check all the registered coin denominations by:
$ shareledger query bank denom-metadata --output json
{
    "metadatas": [
        {
            "description": "The native smallest token of shr chain",
            "denom_units": [
                {
                    "denom": "nshr",
                    "exponent": 0,
                    "aliases": [
                        "nshr"
                    ]
                },
                {
                    "denom": "shr",
                    "exponent": 9,
                    "aliases": [
                        "shr"
                    ]
                }
            ],
            "base": "nshr",
            "display": "shr",
            "name": "nshr",
            "symbol": "nshr"
        }
    ],
    "pagination": {
        "next_key": null,
        "total": "1"
    }
}
query bank total
You can also check the current total supply of the token by:
$ chain-maind query bank total --output json
{
    "supply": [
        {
        "denom": "nshr",
        "amount": "[total_supply_amount]"
        }
    ]
}