Terp Network Docs
APIsRpcInfo
GET
/consensus_params

Get consensus parameters.

Query Parameters

height?integer

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

Default0

Response Body

application/json

application/json

curl -X GET "https://rpc.terp.network/consensus_params"
{
  "jsonrpc": "2.0",
  "id": 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"
        ]
      }
    }
  }
}
{
  "id": 0,
  "jsonrpc": "2.0",
  "error": "Description of failure"
}