Debug JSON-RPC API

Methods useful for debugging purposes with Valdium Network.


debug_traceBlockByHash

Traces all calls made from a specific block by its L2 hash.

Parameters

  1. DATA, 32 bytes - hash defining the L2 block.

  2. 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

Traces all calls made from a specific block by its L2 block number.

Parameters

  1. 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".

  2. 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

Traces a call made at a specific block, by block number or hash.

Parameters

  1. CallRequest - The call request to trace, containing fields like from, to, data, and optionally gas, gasPrice, and value.

  2. 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.

  3. 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

Uses the EVM's callTracer to return a debug trace of a specific transaction given by its transaction hash.

Parameters

  1. DATA, 32 bytes - The 32-byte hash of the transaction to trace.

  2. 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