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_getBlockTransactions",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Gets paginated transaction data for a certain block. Think of an optimized eth_getBlockBy* + eth_getTransactionReceipt.
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_getBlockTransactions",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
ots_getBlockTransactions:params[0]: Block identifier. Can be an integer block number or a string tag: “latest”, “earliest”, or “pending”.Show properties
Show items
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_getBlockTransactions",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?