POST
/
3997273fc956a67dc6982384500e669e
curl --request POST \
  --url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "debug_traceBlockByNumber",
  "params": [
    "latest"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}

The debug_traceBlockByNumber method allows for tracing the execution of all transactions in a specified block. This method is essential for understanding the behavior of transactions and smart contracts within a block, providing insights into executed operations, gas used, and state changes.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • blockNumber - The number of the block to trace. This can be a hexadecimal value or one of the special strings “latest”, “earliest”, or “pending”.

Response

  • result - An object containing detailed execution traces for each transaction in the block.

Use case

This method is invaluable for debugging smart contracts, analyzing transaction execution, and conducting security audits of contract interactions. It offers a granular view of the EVM (Ethereum Virtual Machine) execution process.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:debug_traceBlockByNumber
params
(enum<string> | string)[]
Available options:
latest,
earliest,
pending

Response

200 - application/json
Detailed execution traces of the block
jsonrpc
string
id
integer
result
object