Skip to main content

debug_traceBlockByHash RPC Method

Replay the block that is already present in the database (Trace Mode required).

Updated on
Jan 03, 2025

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
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
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 result objects, each containing transaction details
result
object
The result object for a single transaction
type
string
The type of transaction, e.g., 'CALL'
from
string
The address initiating the transaction
to
string
The address receiving the transaction
gas
string
The gas provided for the transaction in hexadecimal
gasUsed
string
The gas used during transaction execution in hexadecimal
value
string
The value transferred in the transaction in hexadecimal
output
string
The transaction output data in hexadecimal
input
string
The transaction input data in hexadecimal
calls
array
Nested calls made during the transaction
type
string
The type of nested call
from
string
The address initiating the nested call
to
string
The address receiving the nested call
gas
string
The gas provided for the nested call in hexadecimal
gasUsed
string
The gas used during nested call execution in hexadecimal
value
string
The value transferred in the nested call in hexadecimal
output
string
The output data of the nested call in hexadecimal
input
string
The input data of the nested call in hexadecimal
calls
array
Further nested calls within the current call
Request
1
curl https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"debug_traceBlockByHash","params":["0x6d2a190a9de70d4e4c65c8b565a921d190a88a4c78ab734a91b7f75cb2acf78f", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free