Debug JSON-RPC API
Methods useful for debugging purposes with Valdium Network.
debug_traceBlockByHash
debug_traceBlockByHash
Traces all calls made from a specific block by its L2 hash.
Parameters
DATA, 32 bytes - hash defining the L2 block.
TracerConfig - Optional configuration for tracing. Refer to the TraceConfig documentation for more details.
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
debug_traceBlockByNumber
debug_traceBlockByNumber
Traces all calls made from a specific block by its L2 block number.
Parameters
QUANTITY, 8 bytes | TAG - The number of the block to trace. This can be a hex-encoded number or one of the strings "earliest", "latest", or "pending".
TracerConfig - Optional configuration for tracing. Refer to the TraceConfig documentation for more details.
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
debug_traceCall
debug_traceCall
Traces a call made at a specific block, by block number or hash.
Parameters
CallRequest - The call request to trace, containing fields like
from
,to
,data
, and optionallygas
,gasPrice
, andvalue
.DATA, 32 bytes | QUANTITY, 8 bytes - Optional. The block identifier, which can be a block number as a hex-encoded number or a block hash. If not specified, the latest block is used.
TracerConfig - Optional. Configuration options for the trace. For more details, refer to the TraceConfig documentation.
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
debug_traceTransaction
debug_traceTransaction
Uses the EVM's callTracer
to return a debug trace of a specific transaction given by its transaction hash.
Parameters
DATA, 32 bytes - The 32-byte hash of the transaction to trace.
TracerConfig - Optional. Configuration options for the trace. For more details, refer to the TraceConfig documentation.
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
Last updated