---
title: "UpdateParams defines a governance operation for updating the x/consensus module parameters. The authority is defined in the keeper."
method: POST
path: "/cosmos.consensus.v1.Msg/UpdateParams"
tags: ["Msg"]
---

# UpdateParams defines a governance operation for updating the x/consensus module parameters. The authority is defined in the keeper.

`POST /cosmos.consensus.v1.Msg/UpdateParams`

Since: cosmos-sdk 0.47

## Request body

- object — MsgUpdateParams is the Msg/UpdateParams request type.
  - `authority` string — authority is the address that controls the module (defaults to x/gov unless overwritten).
  - `block` object — params defines the x/consensus parameters to update. VersionsParams is not included in this Msg because it is tracked separarately in x/upgrade. NOTE: All parameters must be supplied.
    - `max_bytes` string, int64
    - `max_gas` string, int64
  - `evidence` object — EvidenceParams determine how we handle evidence of malfeasance.
    - `max_age_num_blocks` string, int64 — Max age of evidence, in blocks. The basic formula for calculating this is: MaxAgeDuration / {average block time}.
    - `max_age_duration` string — Max age of evidence, in time. It should correspond with an app's "unbonding period" or other similar mechanism for handling [Nothing-At-Stake attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
    - `max_bytes` string, int64
  - `validator` object — ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names.
    - `pub_key_types` string[]
  - `abci` object — ABCIParams configure functionality specific to the Application Blockchain Interface.
    - `vote_extensions_enable_height` string, int64 — vote_extensions_enable_height configures the first height during which vote extensions will be enabled. During this specified height, and for all subsequent heights, precommit messages that do not contain valid extension data will be considered invalid. Prior to this height, vote extensions will not be used or accepted by validators on the network. Once enabled, vote extensions will be created by the application in ExtendVote, passed to the application for validation in VerifyVoteExtension and given to the application to use when proposing a block during PrepareProposal.

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2024-02-23** `54713b4a9d25` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pokt-network/apis/http-api-console/changes/cosmos.consensus.v1.Msg/UpdateParams/post.md)

---

[API](https://skmtc.dev/pokt-network/apis/http-api-console.md) · [All operations](https://skmtc.dev/pokt-network/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pokt-network/http-api-console/revisions/ca7e84576c8e/schema)
