Queries

Cosmos-SDK Slashing module query commands

The query commands allow users to query slashing state.

sdge query slashing --help

Params

The params command allows users to query genesis parameters for the slashing module.

sged query slashing params [flags]

Example:

sged query slashing params

Example Output:

downtime_jail_duration: 600s
min_signed_per_window: "0.500000000000000000"
signed_blocks_window: "100"
slash_fraction_double_sign: "0.050000000000000000"
slash_fraction_downtime: "0.010000000000000000"

Signing Info

The signing-info command allows users to query the signing info of the validator using the consensus public key.

sged query slashing signing-infos [flags]

Example:

simd query slashing signing-info '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Auxs3865HpB/EfssYOzfqNhEJjzys6jD5B6tPgC8="}'

Example Output:

address: sgevalcons1nrqsld3aw6lh6t082frdqc84uwxn0t958c
index_offset: "2068"
jailed_until: "1970-01-01T00:00:00Z"
missed_blocks_counter: "0"
start_height: "0"
tombstoned: false

Signing Infos

The signing-infos command allows users to query signing infos of all validators.

sged query slashing signing-infos [flags]

Example:

sged query slashing signing-infos

Example Output:

info:
- address: sgevalcons1nrqsld3aw6lh6t082frdqc84uwxn0t958c
  index_offset: "2075"
  jailed_until: "1970-01-01T00:00:00Z"
  missed_blocks_counter: "0"
  start_height: "0"
  tombstoned: false
pagination:
  next_key: null
  total: "0"

For detailed information see the original document.

Last updated