curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getBlockDetailsByHash",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Given a block hash, return its data. Similar to the standard eth_getBlockByNumber/Hash method, but optimized.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getBlockDetailsByHash",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
ots_getBlockDetailsByHash:params[]: 32 Bytes - hash of the block where this transaction was included. Null when pending.Show properties
Show properties
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getBlockDetailsByHash",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?