mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
@@ -0,0 +1,107 @@
|
||||
---
|
||||
title: snrd query bank
|
||||
description: Querying commands for the bank module
|
||||
---
|
||||
|
||||
# snrd query bank
|
||||
|
||||
Querying commands for the bank module
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
snrd query bank [flags]
|
||||
```
|
||||
|
||||
```shell
|
||||
snrd query bank [command]
|
||||
```
|
||||
|
||||
## Available Commands
|
||||
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `balance` | Query an account balance by address and denom |
|
||||
| `balances` | Query for account balances by address |
|
||||
| `denom-metadata` | Query the client metadata of a given coin denomination |
|
||||
| `denom-metadata-by-query-string` | Execute the DenomMetadataByQueryString RPC method |
|
||||
| `denom-owners` | Query for all account addresses that own a particular token denomination. |
|
||||
| `denoms-metadata` | Query the client metadata for all registered coin denominations |
|
||||
| `params` | Query the current bank parameters |
|
||||
| `send-enabled` | Query for send enabled entries |
|
||||
| `spendable-balance` | Query the spendable balance of a single denom for a single account. |
|
||||
| `spendable-balances` | Query for account spendable balances by address |
|
||||
| `total-supply` | Query the total supply of coins of the chain |
|
||||
| `total-supply-of` | Query the supply of a single coin denom |
|
||||
|
||||
## Flags
|
||||
|
||||
<ParamField path="help" type="string">
|
||||
for bank
|
||||
</ParamField>
|
||||
|
||||
## Global Flags
|
||||
|
||||
<ParamField path="broadcast-mode" type="string" default="sync">
|
||||
Transaction broadcasting mode (sync|async)
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="chain-id" type="string">
|
||||
The network chain ID
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="fees" type="string">
|
||||
Fees to pay along with transaction; eg: 10aatom
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="from" type="string">
|
||||
Name or address of private key with which to sign
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="gas-adjustment" type="float" default="1">
|
||||
adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="gas-prices" type="string">
|
||||
Gas prices to determine the transaction fee (e.g. 10aatom)
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="home" type="string" default="/Users/prad/.sonr">
|
||||
directory for config and data
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="keyring-backend" type="string" default="os">
|
||||
Select keyring's backend
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="log_format" type="string" default="plain">
|
||||
The logging format (json|plain)
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="log_level" type="string" default="info">
|
||||
The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>')
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="log_no_color" type="string">
|
||||
colored logs
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="node" type="string" default="tcp://localhost:26657">
|
||||
<host>:<port> to tendermint rpc interface for this chain
|
||||
</ParamField>
|
||||
|
||||
<ParamField path="trace" type="string">
|
||||
out full stack trace on errors
|
||||
</ParamField>
|
||||
|
||||
## Examples
|
||||
|
||||
### Basic query
|
||||
|
||||
```shell
|
||||
snrd query bank
|
||||
```
|
||||
|
||||
## See Also
|
||||
|
||||
- [snrd query](./snrd_query.mdx) - Parent command
|
||||
Reference in New Issue
Block a user