Files
sonr/docs/reference/commands/snrd_query_auth.mdx
T

70 lines
2.6 KiB
Plaintext

---
title: snrd query auth
description: Querying commands for the auth module
---
## Usage
```shell
snrd query auth [flags]
```
```shell
snrd query auth [command]
```
## Available Commands
| Command | Description |
|---------|-------------|
| `account` | Query account by address |
| `account-info` | Query account info which is common to all account types. |
| `accounts` | Query all the accounts |
| `address-by-acc-num` | Query account address by account number |
| `address-bytes-to-string` | Transform an address bytes to string |
| `address-string-to-bytes` | Transform an address string to bytes |
| `bech32-prefix` | Query the chain bech32 prefix (if applicable) |
| `module-account` | Query module account info by module name |
| `module-accounts` | Query all module accounts |
| `params` | Query the current auth parameters |
## Flags
<TypeTable
type={{
"help": { type: "string", description: "for auth" },
}}
/>
## Global Flags
<TypeTable
type={{
"broadcast-mode": { type: "string", default: "sync", description: "Transaction broadcasting mode (sync|async)" },
"chain-id": { type: "string", description: "The network chain ID" },
"fees": { type: "string", description: "Fees to pay along with transaction; eg: 10aatom" },
"from": { type: "string", description: "Name or address of private key with which to sign" },
"gas-adjustment": { type: "float", default: "1", description: "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored" },
"gas-prices": { type: "string", description: "Gas prices to determine the transaction fee (e.g. 10aatom)" },
"home": { type: "string", default: "/Users/prad/.sonr", description: "directory for config and data" },
"keyring-backend": { type: "string", default: "os", description: "Select keyring's backend" },
"log_format": { type: "string", default: "plain", description: "The logging format (json|plain)" },
"log_level": { type: "string", default: "info", description: "The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:&lt;level&gt;,&lt;key&gt;:&lt;level&gt;')" },
"log_no_color": { type: "string", description: "colored logs" },
"node": { type: "string", default: "tcp://localhost:26657", description: "&lt;host&gt;:&lt;port&gt; to tendermint rpc interface for this chain" },
"trace": { type: "string", description: "out full stack trace on errors" },
}}
/>
## Examples
### Basic query
```shell
snrd query auth
```
## See Also
- [snrd query](./snrd_query) - Parent command