arbtrace_get - Arbitrum

arbtrace_get. Retrieves detailed information about a specific transaction trace

arbtrace_get - arbitrum [Value: 20CU]
Retrieves a specific transaction trace by transaction hash and index
Use cases

Use cases

  • Analyze internal transactions for a specific transaction
  • Trace smart contract execution paths and outcomes
  • Debug complex transaction behavior within blockchain
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_get",
  "params": [
    "0xe8648e3ad982a3d67ef0880d6631343cffff364786994b34e5fa292cfef0e680",
    [
      "0x0"
    ]
  ]
}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "action": {
      "callType": "staticcall",
      "from": "0x53bf833a5d6c4dda888f69c22c88c9f356a41614",
      "gas": "0x1fad9",
      "input": "0x068bcd8d0000000000000000000000000000000000000000000000000000000000000001",
      "to": "0x55bdb4164d28fbaf0898e0ef14a589ac09ac9970",
      "value": "0x0"
    },
    "blockHash": "0xd5d0c7b171c10577948cb4e049c58077b27a8b1f480e2cfc54598168c3030298",
    "blockNumber": 22207814,
    "result": {
      "gasUsed": "0x105",
      "output": "0x000000000000000000000000892785f33cdee22a30aef750f285e18c18040c3e"
    },
    "subtraces": 0,
    "traceAddress": [
      0
    ],
    "transactionHash": "0xe8648e3ad982a3d67ef0880d6631343cffff364786994b34e5fa292cfef0e680",
    "transactionPosition": 0,
    "type": "call"
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
blockHashstring
The hash of the transaction to retrieve the trace for.
indexarray
An array specifying the trace indexes within the transaction to be retrieved.

Response

200
The trace object for the specified transaction, containing detailed information about the execution

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.