Consensus params

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.

GEThttps://bnb.nownodes.io/consensus_params
Query parameters
Response

consensus parameters results.

Body
jsonrpc*string
Example: "2.0"
id*integer
Example: 0
result*object
Request
const response = await fetch('https://bnb.nownodes.io/consensus_params', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "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"
        ]
      }
    }
  }
}