trace_block RPC Method
Please note that this RPC method is available to all users on the Build plan and higher. If you are using the Free plan, you will need to upgrade to utilize this method. See our pricing for more information.
Parameters
blockNumber
string
REQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
Returns
result
array
The block traces, where each trace object contains the following fields (all values are hexadecimal unless otherwise noted):
action
object
The action object that describes the call context
from
string
The address of the sender
callType
string
The type of call (e.g., call, delegatecall, staticcall, etc.)
gas
string
The gas provided for the call
input
string
The input data sent with the call
to
string
The address of the recipient
value
string
The amount of wei sent with the call
blockHash
string
The hash of the block containing the traced transaction
blockNumber
integer
The block number of the traced transaction
error
string
(Optional) Error message if the call failed
result
object
The result of the traced call execution
gasUsed
string
The gas used by this specific call
output
string
The return value from the call, or empty if no RETURN was executed
subtraces
integer
The number of internal subtraces that occurred
traceAddress
array
The call hierarchy represented as an array of integers
transactionHash
string
The hash of the transaction that generated this trace
transactionPosition
integer
The index of the transaction in the block
type
string
The type of trace (e.g., call, create)
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free