trace_block
BNB Smart Chain / https://triport.io/rpc/bsc
Minimum tier: Pro
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
| Name | Type | Required | Description |
|---|---|---|---|
| block | BlockTag | Yes |
Returns
| Field | Type |
|---|---|
| traces | TraceList |
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
- Transport: HTTP (JSON-RPC).
- Chain: BNB Smart Chain.
- Clusters: mainnet.
- 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.