Parameters
chainId
string
default:"1329"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"consensus_params"
required
JSON-RPC method name.
The parameters for method consensus_params: [height].Positional parameters for consensus_params:params[]: The height to return.
Returns
Consensus params information.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1329 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "consensus_params",
"params": [
1
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"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": [
"..."
]
}
}
}
}