debug_traceBlockByHash 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
blockHash
string
REQUIRED
The hash of the block to be traced
object
object
REQUIRED
The tracer object with the following fields:
tracer
string
The type of tracer. It could be callTracer or prestateTracer
callTracer
string
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
prestateTracer
string
The prestateTracer replays the transaction and tracks every part of state that occured during the transaction
tracerConfig
object
The object to specify the configurations of the tracer
onlyTopCall
boolean
When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame
Returns
result
array
An array of transaction trace result objects
txHash
string
The hash of the transaction
result
object
The result of the transaction trace
beforeEVMTransfers
array
Array of balance changes before EVM execution
purpose
string
(Optional) The purpose of the transfer
from
string
(Optional) The address funds were transferred from
to
string
(Optional) The address funds were transferred to
value
string
(Optional) The value transferred, encoded as hexadecimal
afterEVMTransfers
array
Array of balance changes after EVM execution
purpose
string
(Optional) The purpose of the transfer
from
string
(Optional) The address funds were transferred from
to
string
(Optional) The address funds were transferred to
value
string
(Optional) The value transferred, encoded as hexadecimal
from
string
Sender address
gas
string
Gas provided for execution
gasUsed
string
Gas used during execution
to
string
Recipient address
input
string
Input data sent along with the call
value
string
Value transferred in the call
type
string
Type of the call (e.g., CALL, STATICCALL, DELEGATECALL)
calls
array
(Optional) The nested internal call traces
from
string
The sender address
gas
string
The gas provided for the call
gasUsed
string
The gas used by the call
to
string
The recipient address
input
string
Input data for the call
output
string
Output data returned by the call
value
string
Value transferred in the call
type
string
Type of the call
calls
array
Sub-calls made during this call
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free