---
title: "Get consensus parameters"
method: GET
path: "/consensus_params"
tags: ["Info"]
---

# Get consensus parameters

`GET /consensus_params`

Get consensus parameters.

If the `height` field is set to a non-default value, upon success, the
`Cache-Control` header will be set with the default maximum age.

## Query parameters

- `height` integer

## Response `200`

consensus parameters results.

- ConsensusParamsResponse
  - `jsonrpc` string, required
  - `id` integer, required
  - `result` object, required
    - `block_height` string, required
    - `consensus_params` ConsensusParams, nullable, required
      - `block` object, required
        - `max_bytes` string, required
        - `max_gas` string, required
        - `time_iota_ms` string, required
      - `evidence` object, required
        - `max_age_num_blocks` string, required
        - `max_age_duration` string, required
      - `validator` object, required
        - `pub_key_types` string[], required

## Other responses

- `500` — Error

## Changes

> 18 revisions in range; 1 not diffed.

- **2021-07-05** `547cd6bf0829` — 1 breaking, 2 info
  - removed the required property `result/consensus_params/evidence/max_age` from the response with the `200` status
  - added the required property `result/consensus_params/evidence/max_age_duration` to the response with the `200` status
  - added the required property `result/consensus_params/evidence/max_age_num_blocks` to the response with the `200` status
- **2020-08-21** `c329db0eaf56` — 2 breaking, 1 info
  - removed the required property `result/consensus_params/evidence/max_age_duration` from the response with the `200` status
  - removed the required property `result/consensus_params/evidence/max_age_num_blocks` from the response with the `200` status
  - added the required property `result/consensus_params/evidence/max_age` to the response with the `200` status

[Change history](https://skmtc.dev/finschia/apis/ostracon-rpc/changes/consensus_params/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)
