debug_traceBlock - Arc

debug_traceBlock. Traces the execution of all transactions in a supplied raw block.

debug_traceBlock - arc [Value: 20CU]
Replays a block that is supplied as raw RLP bytes and returns a trace of every transaction it contains
Use cases

Use cases

  • Trace a locally assembled block before it becomes canonical
  • Test how a hypothetical block would execute against current state
  • Debug block-building in a rollup or private network
Constraints

Constraints

  • The block's parent must already be present in the node's database
  • Large blocks with many transactions can be slow to trace
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://arc-testnet.drpc.org \
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"debug_traceBlock",
    "params":["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bca...", {"tracer": "callTracer", "tracerConfig": {"onlyTopCall": false}}],
    "id":1,
    "jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "type": "CALL",
      "from": "0xe088776deabb472ffd2843e330e79c880a5f979e",
      "to": "0x70526cc7a6d6320b44122ea9d2d07670accc85a1",
      "value": "0x0",
      "gas": "0x7fffffffffffadf7",
      "gasUsed": "0x0",
      "input": "0x",
      "output": "0x"
    }
  ]
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
blockRlpstring
The RLP-encoded block to trace, as a hexadecimal string.
tracerobject
(optional) The tracer configuration for the call.
array
tracerstring
The tracer to use, such as callTracer or prestateTracer.
tracerConfigobject
Configuration options for the selected tracer.
array
onlyTopCallboolean
If true, only the top-level call is traced, and sub-calls are skipped.

Response

200
An array of call traces, one per transaction in the supplied block

Response params

object
idinteger
jsonrpcstring
resultarray_of_objects
The call trace for each transaction in the block, in order.
object
typestring
The type of call (e.g. CALL, DELEGATECALL, CREATE).
fromstring
The sender's address.
tostring
The receiver's address.
valuestring
The value transferred, in Wei.
gasstring
The gas provided for the call.
gasUsedstring
The gas used by the call.
inputstring
The call data sent.
outputstring
The data returned by the call.