v1

latestOpenAPI 3.0.0Apache 2.02026-07-17305086.1 KB
Info

Get consensus parameters

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.

get/consensus_params

Query parameters

heightinteger
Example:1

height to return. If no height is provided, it will fetch commit informations regarding the latest block.

Response

consensus parameters results.

jsonrpcstring required
idinteger required

Example response

{
  "jsonrpc": "2.0",
  "result": {
    "block_height": "1",
    "consensus_params": {
      "block": {
        "max_bytes": "22020096",
        "max_gas": "1000",
        "time_iota_ms": "1000"
      },
      "evidence": {
        "max_age": "100000"
      },
      "validator": {
        "pub_key_types": [
          "ed25519"
        ]
      }
    }
  }
}