Client

CLI

A user can query and interact with the bank module using the CLI.

Query

The query commands allow users to query bank state.

simd query bank --help

balances

The balances command allows users to query account balances by address.

simd query bank balances [address] [flags]

Example:

simd query bank balances cosmos1..

Example output:

balances:
- amount: "1000000000"
  denom: stake
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.

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.

Example:

Example output:

send-enabled

The send-enabled command allows users to query for all or some SendEnabled entries.

Example:

Example output:

Transactions

The tx commands allow users to interact with the bank module.

send

The send command allows users to send funds from one account to another.

Example:

gRPC

A user can query the bank module using gRPC endpoints.

Balance

The Balance endpoint allows users to query account balance by address for a given denomination.

Example:

Example output:

AllBalances

The AllBalances endpoint allows users to query account balance by address for all denominations.

Example:

Example output:

DenomMetadata

The DenomMetadata endpoint allows users to query metadata for a single coin denomination.

Example:

Example output:

DenomsMetadata

The DenomsMetadata endpoint allows users to query metadata for all coin denominations.

Example:

Example output:

DenomOwners

The DenomOwners endpoint allows users to query metadata for a single coin denomination.

Example:

Example output:

TotalSupply

The TotalSupply endpoint allows users to query the total supply of all coins.

Example:

Example output:

SupplyOf

The SupplyOf endpoint allows users to query the total supply of a single coin.

Example:

Example output:

Params

The Params endpoint allows users to query the parameters of the bank module.

Example:

Example output:

SendEnabled

The SendEnabled enpoints allows users to query the SendEnabled entries of the bank module.

Any denominations NOT returned, use the Params.DefaultSendEnabled value.

Example:

Example output:

Last updated