Skip to main content

trace_block

Overview

The "trace_block" gets trace information about all the transactions in a given block. This can be useful for debugging purposes or for analyzing the behavior of a blockchain

Request

curl --request POST \
--url https://ethereum-mainnet-geth-archive.node.coinapi.io \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--data '
{
"jsonrpc": "2.0",
"method": "trace_block",
"stop": [],
"id":1,
"params": ["0x6"]
}
'

Request Parameters

Response

{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"author": "0x0193d941b50d91be6567c7ee1c0fe7af498b4137",
"rewardType": "block",
"value": "0x4563918244f40000"
},
"blockHash": "0x1f1aed8e3694a067496c248e61879cda99b0709a1dfbacd0b693750df06b326e",
"blockNumber": 6,
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "reward"
}
]
}

Errors

  • Invalid Request: This error is returned if the request format is incorrect.
  • Internal Error: This error is returned if there's a server-side issue processing the request.

Rate Limits

Please note that there are rate limits applied to the API to ensure fair usage. Free-tier users are limited to 100 requests per day, while premium users can make up to 1000 or more requests per day.

Support

If you encounter any issues or have further questions regarding the trace_block method, please contact our support team at [email protected].