Parameters
chainId
string
default:"2222"
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:"block_results"
required
JSON-RPC method name.
The parameters for method block_results: [height].Positional parameters for block_results:params[]: Integer - height to return. If no height is provided, it will fetch the latest block.
Returns
Block results information.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=2222 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "block_results",
"params": [
1
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"height": "12",
"txs_results": [
{
"code": "0",
"data": "",
"log": "not enough gas",
"info": "",
"gas_wanted": "100",
"gas_used": "100",
"events": [
"..."
],
"codespace": "ibc"
}
],
"begin_block_events": [
{
"type": "app",
"attributes": [
"..."
]
}
],
"end_block": [
{
"type": "app",
"attributes": [
"..."
]
}
],
"validator_updates": [
{
"pub_key": {
"__truncated": true
},
"power": "300"
}
],
"consensus_params_updates": {
"block": {
"max_bytes": "22020096",
"max_gas": "1000",
"time_iota_ms": "1000"
},
"evidence": {
"max_age": "100000"
},
"validator": {
"pub_key_types": [
"..."
]
}
}
}
}