Queries
Cosmos-SDK Bank module query commands
The query commands allow users to query bank state.
Copysimd query bank --help
Balances
The balances command allows users to query account balances by address.
sged query bank balances [address] [flags]Example:
sged query bank balances sge1..Example Output:
balances:
- amount: "1000000000"
denom: usge
pagination:
next_key: null
total: "0"Denom Metadata
The denom-metadata command allows users to query metadata for coin denominations. A user can query metadata for a single denomination using the --denom flag or all denominations without it.
sged query bank denom-metadata [flags]Example:
Example Output:
Total
The total command allows users to query the total supply of coins. A user can query the total supply for a single coin using the --denom flag or all coins without it.
Copysimd query bank total [flags]
Example:
Example Output:
For detailed information see the original document.
Last updated