Skip to main content

Parameters

chainId
string
default:"4202"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"debug_traceBlockByHash"
required
JSON-RPC method name.
params
object
required
Parameters for method debug_traceBlockByHash: [blockHash, traceConfig]Positional parameters for debug_traceBlockByHash:
  • params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.
  • params[1]: Optional configuration object passed to tracing RPC methods.

Returns

result
array
Full stack trace.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=4202 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "debug_traceBlockByHash",
    "params": [
      "0x97b49e43632ac70c46b4003434058b18db0ad809617bd29f3448d46ca9085576",
      {
        "tracer": "callTracer"
      }
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "txHash": "0xabba...",
      "result": {
        "gas": 85301,
        "returnValue": "",
        "structLogs": [
          "..."
        ]
      }
    },
    {
      "txHash": "0xacca...",
      "result": {}
    }
  ]
}