dump_consensus_state - Cosmos

Example code for the dump_consensus_state JSON-RPC method. Complete guide on how to use dump_consensus_state JSON-RPC in GetBlock Web3 documentation.

Returns the full consensus state including the full validator set, all votes, and connected peers. Heavier than consensus_state — use sparingly.

Parameters

  • None

Request Example

# JSON-RPC over HTTP POST (canonical)
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/dump_consensus_state' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "dump_consensus_state",
    "params": [],
    "id": "getblock.io"
}'

# URI over HTTP GET (alternate, for simple methods)
curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/dump_consensus_state'

Response Example

Response Parameters

Field
Type
Description

result.round_state

object

Detailed round state including validators and votes

result.peers

array

Peer-level consensus state snapshots

Use Cases

  • Deep diagnostics during consensus issues

  • Forensic analysis of past consensus rounds

  • Validator post-mortems

Error Handling

Status Code
Error Message
Cause

404

Not found

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

-32603

Internal error

Server-side error while processing the request

429

Too Many Requests

Rate limit exceeded for your plan

SDK Integration

Last updated

Was this helpful?