Skip to main content

arbtrace_filter RPC Method

Returns traces matching given filter (Trace Mode required, and supported only on OpenEthereum & Erigon).

Updated on
Jan 10, 2024

arbtrace_filter RPC Method

Note: All arbtrace methods on the Arbitrum One chain should be called on blocks prior to 22207815.

Parameters

object
object
The filter object
fromBlock
string
(Optional) The block number or tag
toBlock
string
(Optional) The block number or tag
fromAddress
array
(Optional) The addresses of the Senders.
toAddress
array
(Optional) The addresses of the receivers.
afterQuantity
integer
(Optional) The offset trace number.
count
integer
(Optional) The number of traces to display in a batch.

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)
action
The ParityTrace object, which has the following fields:
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
blockHash
The hash of the block where this transaction was in
blockNumber
An integer value representing the block number where this transaction was in
error
The error message, if any
result
The ParityTraceResult object which has the following fields:
gasUsed
The amount of gas used by this specific transaction alone
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 executed, the address of the parents and the order of the current sub call
transactionHash
The hash of the transaction
transactionPosition
The transaction position
type
The value of the method such as call or create
Request
1
curl https://docs-demo.arbitrum-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","method":"arbtrace_filter","params":[{"fromBlock":"0xa7816b","toBlock":"0xa7816c","fromAddressa":["0x1c7d91ccbdbf378bac0f074678b09cb589184e4e"]}],"id":"1"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free