mirror of
https://github.com/sonr-io/sonr.git
synced 2026-09-16 23:16:25 +00:00
74 lines
3.0 KiB
Plaintext
74 lines
3.0 KiB
Plaintext
---
|
|
title: snrd query staking
|
|
description: Querying commands for the staking module
|
|
---
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
snrd query staking [flags]
|
|
```
|
|
|
|
```shell
|
|
snrd query staking [command]
|
|
```
|
|
|
|
## Available Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `delegation` | Query a delegation based on address and validator address |
|
|
| `delegations` | Query all delegations made by one delegator |
|
|
| `delegations-to` | Query all delegations made to one validator |
|
|
| `delegator-validator` | Query validator info for given delegator validator pair |
|
|
| `delegator-validators` | Query all validators info for given delegator address |
|
|
| `historical-info` | Query historical info at given height |
|
|
| `params` | Query the current staking parameters information |
|
|
| `pool` | Query the current staking pool values |
|
|
| `redelegation` | Query a redelegation record based on delegator and a source and destination validator address |
|
|
| `unbonding-delegation` | Query an unbonding-delegation record based on delegator and validator address |
|
|
| `unbonding-delegations` | Query all unbonding-delegations records for one delegator |
|
|
| `unbonding-delegations-from` | Query all unbonding delegatations from a validator |
|
|
| `validator` | Query a validator |
|
|
| `validators` | Query for all validators |
|
|
|
|
## Flags
|
|
|
|
<TypeTable
|
|
type={{
|
|
"help": { type: "string", description: "for staking" },
|
|
}}
|
|
/>
|
|
|
|
## 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 '*:<level>,<key>:<level>')" },
|
|
"log_no_color": { type: "string", description: "colored logs" },
|
|
"node": { type: "string", default: "tcp://localhost:26657", description: "<host>:<port> to tendermint rpc interface for this chain" },
|
|
"trace": { type: "string", description: "out full stack trace on errors" },
|
|
}}
|
|
/>
|
|
|
|
## Examples
|
|
|
|
### Basic query
|
|
|
|
```shell
|
|
snrd query staking
|
|
```
|
|
|
|
## See Also
|
|
|
|
- [snrd query](./snrd_query) - Parent command
|