debug_traceTransaction
BNB Smart Chain / https://triport.io/rpc/bsc
Minimum tier: Pro
Last updated:
debug_traceTransaction replays one BNB Smart Chain transaction in the selected debug tracer and returns a trace frame describing its execution.
Use it to inspect internal calls, input and output data, or gas consumption for a known transaction hash when a receipt only reports the final outcome. The optional tracer object selects the tracer, timeout, and tracer-specific configuration.
Unlike debug_traceBlockByNumber, this method targets one transaction rather than a whole block. It is best-effort because the pool currently has a single public source with a shared quota and no SLA.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| transactionHash | Hash | Yes | |
| options | TraceOptions | No |
Returns
| Field | Type |
|---|---|
| trace | TraceFrame |
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":"debug_traceTransaction","params":["<transactionHash>","<options>"]}'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": "debug_traceTransaction",
"params": [
"<transactionHash>",
"<options>"
]
}),
});
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":"debug_traceTransaction","params":["<transactionHash>","<options>"]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: BNB Smart Chain.
- Clusters: mainnet.
- Credit cost: 5 per call.
FAQ
- What does debug_traceTransaction do?
- Trace one transaction.
- How many credits does debug_traceTransaction cost?
- debug_traceTransaction costs 5 credit(s) per call on Triport by default.
- Is debug_traceTransaction available over WebSocket?
- debug_traceTransaction is an HTTP JSON-RPC method.