The query
commands allow users to query staking
state.
Copysimd query staking --help
Delegation
The delegation
command allows users to query delegations for an individual delegator on an individual validator.
Usage:
Copy sged query staking delegation [delegator-addr] [validator-addr] [flags]
Example:
Copy sged query staking delegation sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Example Output:
Copy balance:
amount: "10000000000"
denom: usge
delegation:
delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
shares: "10000000000.000000000000000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Delegations
The delegations
command allows users to query delegations for an individual delegator on all validators.
Usage:
Copy sged query staking delegations [delegator-addr] [flags]
Example:
Copy sged query staking delegations sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
Example Output:
Copy delegation_responses:
- balance:
amount: "10000000000"
denom: usge
delegation:
delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
shares: "10000000000.000000000000000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
- balance:
amount: "10000000000"
denom: usge
delegation:
delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
shares: "10000000000.000000000000000000"
validator_address: sgevaloper1x20lytyf6zkcrv5edpkfkn8sz578qg5sqfyqnp
pagination:
next_key: null
total: "0"
Delegations To
The delegations-to
command allows users to query delegations on an individual validator.
Usage:
Copy sged query staking delegations-to [validator-addr] [flags]
Example:
Copy sged query staking delegations-to sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Example Output:
Copy - balance:
amount: "504000000"
denom: usge
delegation:
delegator_address: sge1q2qwwynhv8kh3lu5fkeex4awau9x8fwt45f5cp
shares: "504000000.000000000000000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
- balance:
amount: "78125000000"
denom: usge
delegation:
delegator_address: sge1qvppl3479hw4clahe0kwdlfvf8uvjtcd99m2ca
shares: "78125000000.000000000000000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
pagination:
next_key: null
total: "0"
# historical-info
The historical-info
command allows users to query historical information at given height.
Usage:
Copy sged query staking historical-info [height] [flags]
Example:
Copy sged query staking historical-info 10
Example Output:
Copy header:
app_hash: Lbx8cXpI868wz8sgp4qPYVrlaKjevR5WP/IjUxwp3oo=
chain_id: testnet
consensus_hash: BICRvH3cKD93v7+R1zxE2ljD34qcvIZ0Bdi389qtoi8=
data_hash: 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
evidence_hash: 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
height: "10"
last_block_id:
hash: RFbkpu6pWfSThXxKKl6EZVDnBSm16+U0l0xVjTX08Fk=
part_set_header:
hash: vpIvXD4rxD5GM4MXGz0Sad9I7//iVYLzZsEU4BVgWIU=
total: 1
last_commit_hash: Ne4uXyx4QtNp4Zx89kf9UK7oG9QVbdB6e7ZwZkhy8K0=
last_results_hash: 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
next_validators_hash: nGBgKeWBjoxeKFti00CxHsnULORgKY4LiuQwBuUrhCs=
proposer_address: mMEP2c2IRPLr99LedSRtBg9eONM=
time: "2021-10-01T06:00:49.785790894Z"
validators_hash: nGBgKeWBjoxeKFti00CxHsnULORgKY4LiuQwBuUrhCs=
version:
app: "0"
block: "11"
valset:
- commission:
commission_rates:
max_change_rate: "0.010000000000000000"
max_rate: "0.200000000000000000"
rate: "0.100000000000000000"
update_time: "2021-10-01T05:52:50.380144238Z"
consensus_pubkey:
'@type': /cosmos.crypto.ed25519.PubKey
key: Auxs3865HpB/EfssYOzfqNhEJjzys2Fo6jD5B8tPgC8=
delegator_shares: "10000000.000000000000000000"
description:
details: ""
identity: ""
moniker: myvalidator
security_contact: ""
website: ""
jailed: false
min_self_delegation: "1"
operator_address: sgevaloper1rne8lgs98p0jqe82sgt0qr4rdn4hgvmgp9ggcc
status: BOND_STATUS_BONDED
tokens: "10000000"
unbonding_height: "0"
unbonding_time: "1970-01-01T00:00:00Z"
Params
The params
command allows users to query values set as staking parameters.
Usage:
Copy sged query staking params [flags]
Example:
Copy sged query staking params
Example Output:
Copy bond_denom: usge
historical_entries: 10000
max_entries: 7
max_validators: 50
unbonding_time: 1814400s
Pool
The pool
command allows users to query values for amounts stored in the staking pool.
Usage:
Copy sged q staking pool [flags]
Example:
Example Output:
Copy bonded_tokens: "10000000"
not_bonded_tokens: "0"
Redelegation
The redelegation
command allows users to query a redelegation record based on a delegator and a source and destination validator address.
Usage:
Copy sged query staking redelegation [delegator-addr] [src-validator-addr] [dst-validator-addr] [flags]
Example:
Copy sged query staking redelegation sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p sgevaloper1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Example Output:
Copy pagination: null
redelegation_responses:
- entries:
- balance: "50000000"
redelegation_entry:
completion_time: "2021-10-24T20:33:21.960084845Z"
creation_height: 2.382847e+06
initial_balance: "50000000"
shares_dst: "50000000.000000000000000000"
- balance: "5000000000"
redelegation_entry:
completion_time: "2021-10-25T21:33:54.446846862Z"
creation_height: 2.397271e+06
initial_balance: "5000000000"
shares_dst: "5000000000.000000000000000000"
redelegation:
delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
entries: null
validator_dst_address: sgevaloper1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm
validator_src_address: sgevaloper1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm
Redelegations
The redelegations
command allows users to query all redelegation records for an individual delegator.
Usage:
Copy sged query staking redelegations [delegator-addr] [flags]
Example:
Copy sged query staking redelegation sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
Example Output:
Copy pagination:
next_key: null
total: "0"
redelegation_responses:
- entries:
- balance: "50000000"
redelegation_entry:
completion_time: "2021-10-24T20:33:21.960084845Z"
creation_height: 2.382847e+06
initial_balance: "50000000"
shares_dst: "50000000.000000000000000000"
- balance: "5000000000"
redelegation_entry:
completion_time: "2021-10-25T21:33:54.446846862Z"
creation_height: 2.397271e+06
initial_balance: "5000000000"
shares_dst: "5000000000.000000000000000000"
redelegation:
delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
entries: null
validator_dst_address: sgevaloper1uccl5ugxrm7vqlzwqr04pjd320d2fz0z3hc6vm
validator_src_address: sgevaloper1zppjyal5emta5cquje8ndkpz0rs046m7zqxrpp
- entries:
- balance: "562770000000"
redelegation_entry:
completion_time: "2021-10-25T21:42:07.336911677Z"
creation_height: 2.39735e+06
initial_balance: "562770000000"
shares_dst: "562770000000.000000000000000000"
redelegation:
delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
entries: null
validator_dst_address: sgevaloper1uccl5ugxrm7vqlzwqr04pjd320d2fz0z3hc6vm
validator_src_address: sgevaloper1zppjyal5emta5cquje8ndkpz0rs046m7zqxrpp
Redelegations From
The redelegations-from
command allows users to query delegations that are redelegating from a validator.
Usage:
Copy sged query staking redelegations-from [validator-addr] [flags]
Example:
Copy sged query staking redelegations-from sgevaloper1y4rzzrgl66eyhzt6gse2k7ej3zgwmngeleucjy
Example Output:
Copy pagination:
next_key: null
total: "0"
redelegation_responses:
- entries:
- balance: "50000000"
redelegation_entry:
completion_time: "2021-10-24T20:33:21.960084845Z"
creation_height: 2.382847e+06
initial_balance: "50000000"
shares_dst: "50000000.000000000000000000"
- balance: "5000000000"
redelegation_entry:
completion_time: "2021-10-25T21:33:54.446846862Z"
creation_height: 2.397271e+06
initial_balance: "5000000000"
shares_dst: "5000000000.000000000000000000"
redelegation:
delegator_address: sge1pm6e78p4pgn0da365plzl4t56pxy8hwtqp2mph
entries: null
validator_dst_address: sgevaloper1uccl5ugxrm7vqlzwqr04pjd320d2fz0z3hc6vm
validator_src_address: sgevaloper1y4rzzrgl66eyhzt6gse2k7ej3zgwmngeleucjy
- entries:
- balance: "221000000"
redelegation_entry:
completion_time: "2021-10-05T21:05:45.669420544Z"
creation_height: 2.120693e+06
initial_balance: "221000000"
shares_dst: "221000000.000000000000000000"
redelegation:
delegator_address: sge1zqv8qxy2zgn4c58fz8jt8jmhs3d0attcussrf6
entries: null
validator_dst_address: sgevaloper10mseqwnwtjaqfrwwp2nyrruwmjp6u5jhah4c3y
validator_src_address: sgevaloper1y4rzzrgl66eyhzt6gse2k7ej3zgwmngeleucjy
Unbonding Delegation
The unbonding-delegation
command allows users to query unbonding delegations for an individual delegator on an individual validator.
Usage:
Copy sged query staking unbonding-delegation [delegator-addr] [validator-addr] [flags]
Example:
Copy sged query staking unbonding-delegation sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Example Output:
Copy delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
entries:
- balance: "52000000"
completion_time: "2021-11-02T11:35:55.391594709Z"
creation_height: "55078"
initial_balance: "52000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Unbonding Delegations
The unbonding-delegations
command allows users to query all unbonding-delegations records for one delegator.
Usage:
Copy sged query staking unbonding-delegations [delegator-addr] [flags]
Example:
Copy sged query staking unbonding-delegations sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
Example Output:
Copy pagination:
next_key: null
total: "0"
unbonding_responses:
- delegator_address: sge1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p
entries:
- balance: "52000000"
completion_time: "2021-11-02T11:35:55.391594709Z"
creation_height: "55078"
initial_balance: "52000000"
validator_address: sgevaloper1t8ehvswxjfn3ejzkjtntcyrqwvmvuknzmvtaaa
Unbonding Delegations From
The unbonding-delegations-from
command allows users to query delegations that are unbonding from a validator.
Usage:
Copy sged query staking unbonding-delegations-from [validator-addr] [flags]
Example:
Copy sged query staking unbonding-delegations-from sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Example Output:
Copy pagination:
next_key: null
total: "0"
unbonding_responses:
- delegator_address: sge1qqq9txnw4c77sdvzx0tkedsafl5s3vk7hn53fn
entries:
- balance: "150000000"
completion_time: "2021-11-01T21:41:13.098141574Z"
creation_height: "46823"
initial_balance: "150000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
- delegator_address: sge1peteje73eklqau66mr7h7rmewmt2vt99y24f5z
entries:
- balance: "24000000"
completion_time: "2021-10-31T02:57:18.192280361Z"
creation_height: "21516"
initial_balance: "24000000"
validator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Validator
The validator
command allows users to query details about an individual validator.
Usage:
Copy sged query staking validator [validator-addr] [flags]
Example:
Copy sged query staking validator sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
Example Output:
Copy commission:
commission_rates:
max_change_rate: "0.020000000000000000"
max_rate: "0.200000000000000000"
rate: "0.050000000000000000"
update_time: "2021-10-01T19:24:52.663191049Z"
consensus_pubkey:
'@type': /cosmos.crypto.ed25519.PubKey
key: sIiexdJdYWn27+7iUHQJDnkp63gq/rzUq1Y+fxoGjXc=
delegator_shares: "32948270000.000000000000000000"
description:
details: Witval is the validator arm from Vitwit. Vitwit is into software consulting
and services business since 2015. We are working closely with Cosmos ecosystem
since 2018. We are also building tools for the ecosystem, Aneka is our explorer
for the cosmos ecosystem.
identity: 51468B615127273A
moniker: Witval
security_contact: ""
website: ""
jailed: false
min_self_delegation: "1"
operator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
status: BOND_STATUS_BONDED
tokens: "32948270000"
unbonding_height: "0"
unbonding_time: "1970-01-01T00:00:00Z"
Validators
The validators
command allows users to query details about all validators on a network.
Usage:
Copy sged query staking validators [flags]
Example:
Copy sged query staking validators
Example Output:
Copy pagination:
next_key: FPTi7TKAjN63QqZh+BaXn6gBmD5/
total: "0"
validators:
commission:
commission_rates:
max_change_rate: "0.020000000000000000"
max_rate: "0.200000000000000000"
rate: "0.050000000000000000"
update_time: "2021-10-01T19:24:52.663191049Z"
consensus_pubkey:
'@type': /cosmos.crypto.ed25519.PubKey
key: sIiexdJdYWn27+7iUHQJDnkp63gq/rzUq1Y+fxoGjXc=
delegator_shares: "32948270000.000000000000000000"
description:
details: Witval is the validator arm from Vitwit. Vitwit is into software consulting
and services business since 2015. We are working closely with Cosmos ecosystem
since 2018. We are also building tools for the ecosystem, Aneka is our explorer
for the cosmos ecosystem.
identity: 51468B615127273A
moniker: Witval
security_contact: ""
website: ""
jailed: false
min_self_delegation: "1"
operator_address: sgevaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj
status: BOND_STATUS_BONDED
tokens: "32948270000"
unbonding_height: "0"
unbonding_time: "1970-01-01T00:00:00Z"
- commission:
commission_rates:
max_change_rate: "0.100000000000000000"
max_rate: "0.200000000000000000"
rate: "0.050000000000000000"
update_time: "2021-10-04T18:02:21.446645619Z"
consensus_pubkey:
'@type': /cosmos.crypto.ed25519.PubKey
key: GDNpuKDmCg9GnhnsiU4fCWktuGUemjNfvpCZiqoRIYA=
delegator_shares: "559343421.000000000000000000"
description:
details: Noderunners is a professional validator in POS networks. We have a huge
node running experience, reliable soft and hardware. Our commissions are always
low, our support to delegators is always full. Stake with us and start receiving
your Cosmos rewards now!
identity: 812E82D12FEA3493
moniker: Noderunners
security_contact: info@noderunners.biz
website: http://noderunners.biz
jailed: false
min_self_delegation: "1"
operator_address: sgevaloper1q5ku90atkhktze83j9xjaks2p7uruag5zp6wt7
status: BOND_STATUS_BONDED
tokens: "559343421"
unbonding_height: "0"
unbonding_time: "1970-01-01T00:00:00Z"
For detailed information see the original document.
Last updated 9 months ago