> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cosmos.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Params

> gRPC: `cosmos.consensus.v1.Query/Params` ([reference](/sdk/latest/api-reference/grpc/consensus#params))

Params queries the parameters of x/consensus module.



## OpenAPI

````yaml /sdk/latest/api-reference/rest/openapi.yaml get /cosmos/consensus/v1/params
openapi: 3.0.0
info:
  title: Cosmos SDK REST API
  description: >-
    HTTP bindings for the gRPC query services of the standard Cosmos SDK
    modules, documenting Cosmos SDK v0.55.


    Generated from cosmos/cosmos-sdk at commit
    2086680ff8b08fd269ee653e087ea577bab79534 on ref `release/v0.55.x`.


    A chain exposes only the modules its application registers, so it may serve
    a subset of these routes alongside routes of its own.
  version: v0.55
servers:
  - url: https://cosmos-rest.publicnode.com
    description: >-
      Community-run public endpoint serving Cosmos Hub. Not operated by the
      Cosmos SDK team, and running a different SDK version than these pages
      document. Endpoints for modules the chain does not include return 501.
  - url: http://localhost:1317
    description: Your own node. Requires api.enable in app.toml.
security: []
tags:
  - name: auth
  - name: authz
  - name: bank
  - name: base
  - name: consensus
  - name: distribution
  - name: epochs
  - name: evidence
  - name: feegrant
  - name: gov
  - name: mint
  - name: slashing
  - name: staking
  - name: tx
  - name: upgrade
paths:
  /cosmos/consensus/v1/params:
    get:
      tags:
        - consensus
      summary: Params
      description: >-
        gRPC: `cosmos.consensus.v1.Query/Params`
        ([reference](/sdk/latest/api-reference/grpc/consensus#params))


        Params queries the parameters of x/consensus module.
      operationId: consensus_v1_Params
      responses:
        '200':
          description: A successful response.
          content:
            '*/*':
              schema:
                type: object
                properties:
                  params:
                    description: >-
                      params are the tendermint consensus params stored in the
                      consensus module.

                      Please note that `params.version` is not populated in this
                      response, it is

                      tracked separately in the x/upgrade module.
                    type: object
                    properties:
                      block:
                        type: object
                        properties:
                          max_bytes:
                            type: string
                            format: int64
                            title: |-
                              Max block size, in bytes.
                              Note: must be greater than 0
                          max_gas:
                            type: string
                            format: int64
                            title: |-
                              Max gas per block.
                              Note: must be greater or equal to -1
                        description: BlockParams contains limits on the block size.
                        nullable: true
                        additionalProperties: false
                      evidence:
                        type: object
                        properties:
                          max_age_num_blocks:
                            type: string
                            format: int64
                            description: >-
                              Max age of evidence, in blocks.


                              The basic formula for calculating this is:
                              MaxAgeDuration / {average block

                              time}.
                          max_age_duration:
                            type: string
                            description: >-
                              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).
                            nullable: true
                          max_bytes:
                            type: string
                            format: int64
                            title: >-
                              This sets the maximum size of total evidence in
                              bytes that can be committed in a single block.

                              and should fall comfortably under the max block
                              bytes.

                              Default is 1048576 or 1MB
                        description: >-
                          EvidenceParams determine how we handle evidence of
                          malfeasance.
                        nullable: true
                        additionalProperties: false
                      validator:
                        type: object
                        properties:
                          pub_key_types:
                            type: array
                            items:
                              type: string
                        description: >-
                          ValidatorParams restrict the public key types
                          validators can use.

                          NOTE: uses ABCI pubkey naming, not Amino names.
                        nullable: true
                        additionalProperties: false
                      version:
                        type: object
                        properties:
                          app:
                            type: string
                            format: uint64
                        description: VersionParams contains the ABCI application version.
                        nullable: true
                        additionalProperties: false
                      abci:
                        type: object
                        properties:
                          vote_extensions_enable_height:
                            type: string
                            format: int64
                            description: >-
                              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.
                        description: >-
                          ABCIParams configure functionality specific to the
                          Application Blockchain Interface.
                        nullable: true
                        additionalProperties: false
                      authority:
                        type: object
                        properties:
                          authority:
                            type: string
                        nullable: true
                        additionalProperties: false
                    nullable: true
                    additionalProperties: false
                description: >-
                  QueryParamsResponse defines the response type for querying
                  x/consensus parameters.
                additionalProperties: false
        default:
          description: An unexpected error response.
          content:
            '*/*':
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                  message:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        '@type':
                          type: string
                      additionalProperties: {}

````