dump_consensus_state - Cosmos

dump_consensus_state. Understand how to obtain a detailed snapshot of the consensus state

dump_consensus_state - Cosmos [Value: 20CU]
Retrieves how to obtain a detailed snapshot of the consensus state
Use cases

Use cases

  • Analyze full consensus state of the blockchain
  • Troubleshoot consensus-related issues and conflicts
  • Monitor validator voting power and priorities
Constraints

Constraints

  • Large data payload can be resource-intensive
  • Requires in-depth understanding of consensus mechanics
  • Real-time data can change rapidly during consensus
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --location 'https://cosmos-hub.drpc.org' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "dump_consensus_state",
    "params": [],
    "id": 1
}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": {
    "height": "20431584",
    "round": "0",
    "step": "COMMIT",
    "validators": [
      {
        "address": "12345ABCDE...",
        "voting_power": "500000000",
        "proposer_priority": "-1"
      },
      {
        "address": "67890FGHIJ...",
        "voting_power": "500000000",
        "proposer_priority": "1"
      }
    ],
    "proposer": "12345ABCDE...",
    "commit_votes": [],
    "last_commit": {
      "block_id": {
        "hash": "0x1234567890ABCDEF...",
        "parts": {
          "total": 1,
          "hash": "0x9876543210..."
        }
      },
      "signatures": []
    }
  },
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
Contains a comprehensive dump of the consensus state

Response params

object
idinteger
jsonrpcstring
resultobject
object
round_stateobject
Details about the current round in the consensus process, such as height, round number, step, and timing.
object
heightstring
The block height at which the current round is taking place.
roundinteger
The number of the current round in the consensus process.
stepstring
The current step or phase of the consensus round.
start_timestring
The timestamp marking the beginning of the current round.
commit_timestring
The timestamp when the commit occurred during the consensus round.
validatorsobject
Information about the validators participating in the current round, including their addresses, public keys, and voting power.
object
validatorsarray
A list of validators involved in the consensus round.
object
addressstring
The unique address of the validator.
pub_keyobject
The public key of the validator, used for signing transactions.
object
typestring
The type of the public key.
valuestring
The actual value of the public key.
voting_powerstring
The voting power assigned to the validator, influencing its weight in the consensus process.
proposer_prioritystring
The priority of the validator as a block proposer in the round.
proposerobject
Details about the validator who is the proposer in the current round, including address and public key.
object
addressstring
The address of the proposer.
pub_keyobject
The public key of the proposer.
object
typestring
The type of the public key.
valuestring
The value of the public key.
voting_powerstring
The voting power of the proposer.
proposer_prioritystring
The priority assigned to the proposer in the round.
proposalobject
Details of the proposed block in the current round, including the block itself and any associated parts.
object
proposal_blockstring
The block that has been proposed, if any.
proposal_block_partsstring
The parts that make up the proposed block.
proposal_receive_timestring
The time when the proposal was received by the network.
locked_roundinteger
Indicates the round number that is currently locked in the consensus process.
locked_blockstring
The block that is currently locked in the consensus process.
locked_block_partsstring
The parts that make up the locked block.
valid_roundinteger
The round number that is considered valid in the consensus process.
valid_blockstring
The block that is considered valid in the consensus process.
valid_block_partsstring
The parts that make up the valid block.
votesarray
A list of votes cast during the round, including prevotes and precommits.
object
roundinteger
The round number associated with the votes.
prevotesarray
An array of prevotes received in the round.
prevotes_bit_arraystring
A bit array representing the prevotes.
precommitsarray
An array of precommits received in the round.
precommits_bit_arraystring
A bit array representing the precommits.
commit_roundinteger
The round at which the commit occurred.
last_commitobject
Information about the last commit, including the votes and the majority peers.
object
votesarray
An array of votes in the last commit.
votes_bit_arraystring
A bit array representing the votes in the last commit.
peer_maj_23sstring
The majority of peers (2/3) required for the commit.
last_validatorsobject
Details of the validators in the last round, including their addresses, public keys, voting power, and proposer priority.
object
validatorsarray
An array of validators from the last round.
object
addressstring
The address of the validator.
pub_keyobject
Details of the public key used by the validator.
object
typestring
The type of the public key.
valuestring
The value of the public key.
voting_powerstring
The voting power assigned to the validator.
proposer_prioritystring
The priority of the validator as a proposer in the last round.
proposerobject
Details of the proposer in the last round, including address and public key.
object
addressstring
The address of the proposer.
pub_keyobject
Details of the public key used by the proposer.
object
typestring
The type ofthe public key.
valuestring
The value of the public key.
voting_powerstring
The voting power of the proposer.
proposer_prioritystring
The priority of the proposer.
triggered_timeout_precommitboolean
Indicates whether a timeout precommit was triggered during the round.
peersarray
An array of peer nodes participating in the consensus process.
object
node_addressstring
The address of the peer node.
peer_stateobject
Details about the peer's state, including its round state and consensus statistics.
object
round_stateobject
The round state of the peer node, including its height, round, and step.
object
heightstring
The height of the round.
roundinteger
The round number the peer is currently in.
stepstring
The step in the consensus process that the peer is on.
start_timestring
The start time of the peer's current round.
proposalobject
Details about the proposal in the peer's current round.
object
proposal_block_part_set_headerobject
Header information about the parts of the proposal block, including the total number of parts.
object
totalinteger
The total number of block parts.
hashstring
The hash of the block parts.
proposal_block_partsstring
Information about the block parts in the proposal.
proposal_pol_roundinteger
The round in which the proposal was locked.
proposal_polstring
The proposal policy for the round.
prevotesstring
The prevotes received in the peer's current round.
precommitsstring
The precommits received in the peer's current round.
last_commit_roundinteger
The round of the last commit.
last_commitstring
The details of the last commit.
catchup_commit_roundinteger
The round of the catchup commit.
catchup_commitstring
The details of the catchup commit.
statsobject
Statistics related to the peer's votes and block parts.
object
votesinteger
The number of votes the peer has cast.
block_partsinteger
The number of block parts the peer has processed.