module_bank
bank
module
bank
moduleIntroduction
The bank
module maintains the state of two primary objects:
Account balances by address;
Total supply of tokens of the chain
bank
module tracks and provides query support for the total supply of all assets used in the application. It also supports token transfer functionalities. Specifically, the total supply is updated whenever a token is:
Minted, e.g. Token created by the mint module; or
Burned, e.g. Token distorted by the slashing module.
Transactions and Queries
Transactions
tx bank send [from_key_or_address] [to_address] [amount] [network_id]
- Send Funds
You can transfer of tokens between to a designated address by the tx bank send
command. For example, we can send 1 basetcro to Bob's address by
Queries
query bank balances [address]
- Check the balance of a specified account
One can check the current balance of a specified account by:
query bank total
- Check the total supply of the token
You can also check the current total supply of the token by:
REST endpoint
The parameters can be checked by browsing to the following REST endpoint on Mainnet:
https://rest.cronos.org/cosmos/bank/v1beta1/params/
Appendix
bank
module: Network Parameters and configuration
Last updated