---
title: "Get consensus state"
method: GET
path: "/dump_consensus_state"
tags: ["Info"]
---

# Get consensus state

`GET /dump_consensus_state`

Get consensus state.

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

## Response `200`

Complete consensus state.

See https://pkg.go.dev/github.com/Finschia/ostracon/types?tab=doc#Vote.String for Vote string description.

- DumpConsensusResponse
  - `jsonrpc` string, required
  - `id` integer, required
  - `result` object, required
    - `round_state` object, required
      - `height` string, required
      - `round` integer, required
      - `step` integer, required
      - `start_time` string, required
      - `commit_time` string, required
      - `validators` object, required
        - `validators` ValidatorPriority[], required
          - `address` string
          - `pub_key` object
            - `type` string, required
            - `value` string, required
          - `voting_power` string
          - `proposer_priority` string
      - `locked_round` integer, required
      - `valid_round` string, required
      - `votes` object[], required
        - `round` string
        - `prevotes` string[], nullable
        - `prevotes_bit_array` string
        - `precommits` string[], nullable
        - `precommits_bit_array` string
      - `commit_round` integer, required
      - `last_commit` object, nullable, required
        - `votes` string[], required
        - `votes_bit_array` string, required
        - `peer_maj_23s` object, required
      - `last_validators` object, required
        - `validators` ValidatorPriority[], required
          - `address` string
          - `pub_key` object
            - `type` string, required
            - `value` string, required
          - `voting_power` string
          - `proposer_priority` string
      - `triggered_timeout_precommit` boolean, required
    - `proposer` object
      - `address` string, required
      - `pub_key` object, required
        - `type` string, required
        - `value` string, required
      - `voting_power` string, required
      - `proposer_priority` string, required
    - `peers` object[], required
      - `node_address` string
      - `peer_state` object
        - `round_state` object, required
          - `height` string, required
          - `round` string, required
          - `step` integer, required
          - `start_time` string, required
          - `proposal` boolean, required
          - `proposal_block_parts_header` object, required
            - `total` integer, required
            - `hash` string, required
          - `proposal_pol_round` integer, nullable, required
          - `proposal_pol` string, nullable, required
          - `prevotes` string, nullable, required
          - `precommits` string, nullable, required
          - `last_commit_round` integer, nullable, required
          - `last_commit` string, nullable, required
          - `catchup_commit_round` integer, nullable, required
          - `catchup_commit` string, nullable, required
        - `stats` object, required
          - `votes` string, required
          - `block_parts` string, required

## Other responses

- `500` — Error

## Changes

> 18 revisions in range; 1 not diffed.

- **2023-01-22** `4c3b4d6d6be6` — 2 breaking, 2 info
  - removed the required property `result/round_state/last_voters` from the response with the `200` status
  - removed the required property `result/round_state/voters` from the response with the `200` status
  - added the required property `result/round_state/last_validators` to the response with the `200` status
  - added the required property `result/round_state/validators` to the response with the `200` status
- **2021-07-05** `547cd6bf0829` — 2 breaking, 3 info
  - removed the required property `result/round_state/last_validators` from the response with the `200` status
  - removed the required property `result/round_state/validators` from the response with the `200` status
  - added the optional property `result/proposer` to the response with the `200` status
  - added the required property `result/round_state/last_voters` to the response with the `200` status
  - …1 more
- **2020-08-21** `c329db0eaf56` — 1 warning, 2 info
  - removed the optional property `result/proposer` from the response with the `200` status
  - added the required property `result/round_state/last_validators/proposer` to the response with the `200` status
  - added the required property `result/round_state/validators/proposer` to the response with the `200` status

[Change history](https://skmtc.dev/finschia/apis/ostracon-rpc/changes/dump_consensus_state/get.md)

---

[API](https://skmtc.dev/finschia/apis/ostracon-rpc.md) · [All operations](https://skmtc.dev/finschia/apis/ostracon-rpc/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/finschia/ostracon-rpc/revisions/f8b90bf02ef4/schema)
