Parameters
chainId
string
default:"10"
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:"ots_getBlockDetails"
required
JSON-RPC method name.
The parameters for ots_getBlockDetails: [blockNumber].Positional parameters for ots_getBlockDetails:params[0]: Type: number.params[1]: Type: string.
Returns
Modified block object with additional fields and stripped transaction list.
Block data (similar to eth_getBlockByNumber/Hash but modified).
Block number (hex quantity) or null if pending.
Block hash or null if pending.
Always null in this format to reduce bandwidth.
Base fee per gas (EIP-1559 blocks only).
Number of transactions in the block (as a hex quantity).
Issuance details for the block.
Block reward issued to the miner.
Total ETH issued (blockReward + uncleReward).
Total fees paid by senders in this block (includes base fee; not all fees go to miner).
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getBlockDetails",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}