TriportRPC

trace_block

BNB Smart Chain / https://triport.io/rpc/bsc

Minimum tier: Pro

BNB Smart Chain method guide

Last updated:

trace_block returns Parity-style trace frames for all traced executions in a selected BNB Smart Chain block.

Use it when an integration expects the trace namespace rather than debug tracer output. The block is selected with a standard tag or hex block number and the result is an array of trace frames.

Unlike debug_traceBlockByNumber, this method does not accept a debug tracer configuration. The method is best-effort because the pool currently has a single public source with a shared quota and no SLA.

Parameters

trace_block parameters
NameTypeRequiredDescription
blockBlockTagYes

Returns

trace_block return value
FieldType
tracesTraceList

Examples

curl https://triport.io/rpc/bsc \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"trace_block","params":["<block>"]}'
const res = await fetch("https://triport.io/rpc/bsc", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "trace_block",
  "params": [
    "<block>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/bsc",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"trace_block","params":["<block>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: BNB Smart Chain.
  3. Clusters: mainnet.
  4. Credit cost: 5 per call.

FAQ

What does trace_block do?
Return Parity-style traces for a block.
How many credits does trace_block cost?
trace_block costs 5 credit(s) per call on Triport by default.
Is trace_block available over WebSocket?
trace_block is an HTTP JSON-RPC method.