Debug JSON-RPC API
Methods useful for debugging purposes with Valdium Network.
debug_traceBlockByHash
debug_traceBlockByHashTraces 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
curl --request POST \
--url http://testnet.l2.rpc.validium.network/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "debug_traceBlockByHash",
"params": ["0x4bd0bd4547d8f8a4fc86a024e54558e156c1acf43d82e24733c6dac2fe5c5fc7"]
}'Example Response
debug_traceBlockByNumber
debug_traceBlockByNumberTraces 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_traceCallTraces 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_traceTransactionUses 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