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.

Parameters

  • height: INTEGER - height to return. If no height is provided, it will fetch commit informations regarding the latest block. (Minimum: 15377963)
curl https://cosmos-mainnet-archive.allthatnode.com:26657/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "consensus_params",
  "params": {
  	"height": "16291300"
  }
}'

Returns

  • OBJECT - Consensus parameters results.
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "block_height": "16291300",
    "consensus_params": {
      "block": {
        "max_bytes": "200000",
        "max_gas": "40000000",
        "time_iota_ms": "1000"
      },
      "evidence": {
        "max_age_num_blocks": "1000000",
        "max_age_duration": "172800000000000",
        "max_bytes": "50000"
      },
      "validator": {
        "pub_key_types": [
          "ed25519"
        ]
      },
      "version": {}
    }
  }
}

Try Yourself

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