TriportRPC

trace_transaction

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

trace_transaction replays one transaction that has already been included in a block and returns its execution as a flat list of Parity-style trace frames — one entry per internal call (call, create, suicide, reward), each tagged with its position in the call tree. It is the most convenient method for single-transaction forensic analysis: MEV path reconstruction, internal token-transfer tracing, and revert diagnosis without having to pull and walk a whole block.

Compared to its siblings, trace_transaction is the lightest of the block-scoped trace methods — it returns only the frames for one transaction, so it is far cheaper than trace_block (the full-block call tree) or trace_replayBlockTransactions (full block replay with state diffs), yet richer than eth_getTransactionReceipt, which gives you only the top-level result and logs.

This is a trace-namespace (Parity) method available on the Pro tier and above. It is rate limited per tier (3 RPS on Pro, 10 RPS on Business) with a short burst allowance; there is no daily quota. If the hash does not correspond to a mined transaction — unknown, or still pending in the mempool — the method returns null rather than an error.

Parameters

This method takes no parameters.

Returns

trace_transaction return value
FieldType
resultobject

Examples

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

Usage

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

FAQ

What does trace_transaction do?
Как это работает у нас (2026-07-26). Метод собирается на нашей стороне из geth-трейсера debug_ и приводится к parity-формату. Причина: bor — форк geth, parity-namespace trace_ в нём отсутствует, а внешний premium-канал (the RPC provider), через который метод отдавался раньше, закрыл trace_*. Схема ответа сверяется с живым parity-ответом, а не с документацией. Подробности и границы — docs/polygon-trace-shim/PLAN.md.
How many credits does trace_transaction cost?
trace_transaction costs 5 credit(s) per call on Triport by default.
Is trace_transaction available over WebSocket?
trace_transaction is an HTTP JSON-RPC method.