arbtrace_block - Arbitrum

arbtrace_block. Retrieves detailed transaction traces for all transactions within a specified block

arbtrace_block - arbitrum [Value: 90CU]
Retrieves detailed execution traces of all transactions included in a specific block
Use cases

Use cases

  • Analyze internal transactions for the latest block
  • Trace smart contract executions in the newest block
  • Investigate transaction behavior within the most recent block
Constraints

Constraints

  • arbtrace_ methods can be used on blocks prior to 22207816, while debug_trace methods can be used for blocks after 22207818
  • Block 22207817 cannot be traced but is empty.
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://arbitrum.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "arbtrace_block",
  "params": [
    "0x123456789abcdef"  # Replace with actual block hash
  ]
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "callType": "call",
        "from": "0x38201633a07c0381196faff86711f95192ee5042",
        "gas": "0x2c09e",
        "input": "0xa694fc3a000000000000000000000000000000000000000000000000000003a352944000",
        "to": "0x1f80c96ca521d7247a818a09b0b15c38e3e58a28",
        "value": "0x0"
      },
      "blockHash": "0xb99fb5a03d31b8323b84ff66615c05e4a6b7c33968ab5035c832093cee0ee6f1",
      "blockNumber": 22207810,
      "result": {
        "gasUsed": "0x1971e",
        "output": "0x"
      },
      "subtraces": 1,
      "traceAddress": [],
      "transactionHash": "0x2c3b706e8a25b20560bb5b7fb161a3ddbd9a54b72e3e0265c9cc1d6ebe15d4fe",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "callType": "call",
        "from": "0x1f80c96ca521d7247a818a09b0b15c38e3e58a28",
        "gas": "0x12915",
        "input": "0x23b872dd00000000000000000000000038201633a07c0381196faff86711f95192ee50420000000000000000000000001f80c96ca521d7247a818a09b0b15c38e3e58a28000000000000000000000000000000000000000000000000000003a352944000",
        "to": "0x0c1cf6883efa1b496b01f654e247b9b419873054",
        "value": "0x0"
      },
      "blockHash": "0xb99fb5a03d31b8323b84ff66615c05e4a6b7c33968ab5035c832093cee0ee6f1",
      "blockNumber": 22207810,
      "result": {
        "gasUsed": "0x263",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      },
      "subtraces": 0,
      "traceAddress": [
        0
      ],
      "transactionHash": "0x2c3b706e8a25b20560bb5b7fb161a3ddbd9a54b72e3e0265c9cc1d6ebe15d4fe",
      "transactionPosition": 0,
      "type": "call"
    }
  ]
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of strings
array of strings
blockNumberstring
The integer of a block encoded as hexadecimal or the string.

Response

200
An array containing trace objects for each transaction in the block.

Response params

object
idinteger
jsonrpcstring
resultobject
object
actionobject
Contains details about the trace action.
object
callTypestring
The type of call.
fromstring
The sender's address.
tostring
The receiver's address.
valuestring
The value transferred in wei.
gasstring
The gas provided for the call.
inputstring
The data sent with the call.
blockHashstring
The hash of the block where the trace occurred.
blockNumberstring
The number of the block where the trace occurred.
resultstring
object
gasUsedstring
Gas used by the trace.
outputstring
Call output.
subtracesinteger
Number of subtraces created by this trace..
traceAddressarray_of_strings
Position of this trace in the call stack.
transactionHashstring
Hash of the transaction containing this trace.
transactionPositionstring
Transaction's position in the block.
typestring
The type of trace.