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_getBlockDetails",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Given a block number, 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_getBlockDetails",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
ots_getBlockDetails:params[0]: Type: number.params[1]: Type: string.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_getBlockDetails",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?