consensus_state

Get consensus state

🚧

Not safe to call from inside the ABCI application during a block execution.

Parameters

  • No parameters are needed.
curl https://cosmos-mainnet-archive.allthatnode.com:26657/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "consensus_state",
  "params": {
  }
}'

Returns

  • OBJECT - Consensus state results.
{
  "jsonrpc": "2.0",
  "id": -1,
  "result": {
    "round_state": {
      "height/round/step": "16377835/0/1",
      "start_time": "2023-08-01T01:43:45.007273831Z",
      "proposal_block_hash": "",
      "locked_block_hash": "",
      "valid_block_hash": "",
      "height_vote_set": [
        {
          "round": 0,
          "prevotes": [
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            // more votes
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote"
          ],
          "prevotes_bit_array": "BA{180:____________________________________________________________________________________________________________________________________________________________________________________} 0/249385988 = 0.00",
          "precommits": [
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            // more votes		
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote",
            "nil-Vote"
          ],
          "precommits_bit_array": "BA{180:____________________________________________________________________________________________________________________________________________________________________________________} 0/249385988 = 0.00"
        }
      ],
      "proposer": {
        "address": "59AC672068F7AE75ED8F5300FC3261C92B909A0A",
        "index": 111
      }
    }
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!