Skip to main content

arbtrace_call RPC Method

Executes a new message call and returns a number of possible traces (Trace Mode required, and supported only on OpenEthereum & Erigon).

Updated on
May 29, 2024

arbtrace_call RPC Method

Please note that all 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.

Parameters

object
object
The transaction call object, should have this shape:
from
The address the transaction is sent from
to
string
The address the transaction is directed to
gas
integer
Integer formatted as a hex string of the gas provided for the transaction execution. `eth_call` consumes zero gas, but this parameter may be needed by some executions.
gasPrice
integer
Integer of the gasPrice used for each paid gas encoded as a hexadecimal.
value
Integer
Integer of the value sent with this transaction encoded as a hexadecimal.
data
string
The hash of the method signature followed by encoded parameters
array
array
REQUIRED
The type of trace, which can be one of the following:
vmTrace
To get a full trace of virtual machine's state during the execution of the given of given transaction, including for any subcalls.
trace
To get the basic trace of the given transaction.
stateDiff
To get information on altered Ethereum state due to execution of the given transaction.
blockNumber
string
The block number or tags (latest or pending)

Returns

array
The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated)
output
The data which is returned as an output encoded in hexadecimal format
stateDiff
It returns the information on altered Ethereum state due to execution of the given transaction
trace
It is used to retrieve the basic trace of the given information
action
The action to be performed on the receiver id
from
The address of the sender
callType
The type of method such as call, delegatecall
gas
The gas provided by the sender, encoded as hexadecimal
input
The data sent along with the transaction
to
The address of the receiver
value
The integer of the value sent with this transaction, encoded as hexadecimal
result
The integer of the gas price used encoded as hexadecimal
gasUsed
The total used gas by all transactions in this block encoded as hexadecimal
output
The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes
subtraces
The traces of contract calls made by the transaction
traceAddress
The list of addresses where the call was executed, the address of the parents, and the order of the current sub call
type
The value of the method such as call or create
vmTrace
The virtual machine traces
destroyedContracts
It tracks terminated contracts in a system
Request
1
curl https://docs-demo.arbitrum-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"arbtrace_call","params":[{"from":null,"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},["trace"], "latest"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free