Debug JSON-RPC API
Methods useful for debugging purposes with Valdium Network.
Last updated
Methods useful for debugging purposes with Valdium Network.
Last updated
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 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
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".
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
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 optionally gas
, gasPrice
, and value
.
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.
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
debug_traceTransaction
Parameters
DATA, 32 bytes - The 32-byte hash of the transaction to trace.
Returns
Array of objects, each representing a traced call made from the specified block.
Trace Object
Show properties
Example Request
Example Response
TracerConfig - Optional configuration for tracing. Refer to the for more details.
TracerConfig - Optional. Configuration options for the trace. For more details, refer to the .
Uses the to return a debug trace of a specific transaction given by its transaction hash.
TracerConfig - Optional. Configuration options for the trace. For more details, refer to the .