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:

sged query bank denom-metadata --denom stake

Example Output:

metadata:
  base: usge
  denom_units:
  - aliases:
    - SGE
    denom: sge
  description: native staking token of SGE app
  display: sge
  name: SGE Token
  symbol: SGE

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:

sged query bank total --denom sge

Example Output:

amount: "10000000000" denom: sge

For detailed information see the original document.

Last updated