Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction.

Updated on
Aug 31, 2026
This RPC method is included in the Free Trial with limited usage. Upgrade your plan to get full access and higher limits. Learn more onĀ our pricing page.

Parameters

transactionHash
string
REQUIRED

The transaction hash that needs to be traced, encoded in hexadecimal format

object
object
REQUIRED

The tracer object with the following fields:

tracer
string

The type of tracer. It could be callTracer or prestateTracer

callTracer
string

The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction

prestateTracer
string

The prestateTracer replays the transaction and tracks every part of state that occured during the transaction

tracerConfig
object

The object to specify the configurations of the tracer

onlyTopCall
boolean

When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame

timeout
object

A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds.

Returns

result
object

The transaction call trace.

from
string

The address from which the transaction was sent.

gas
string

The gas provided for the transaction, encoded as a hexadecimal value.

gasUsed
string

The gas used by the transaction, encoded as a hexadecimal value.

input
string

The input data supplied to the transaction.

to
string

The address to which the transaction was sent.

type
string

The type of call.

value
string

The value transferred by the transaction, encoded as a hexadecimal value.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"from": "0x5ad176ebb13cabe62ee7c07f52a67b4a48cbef83",
5
"gas": "0x61a80",
6
"gasUsed": "0x98d2",
7
"input": "0xda1750b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000404624044d1509a0460ae9dc9236b04602aaee65ef7045e993727d9b3",
8
"to": "0xbbe55e29bbc6d71ecab1ac011c9ac5206ab2fe74",
9
"type": "CALL",
10
"value": "0x0"
11
},
12
"id": 1
13
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"from": "0x5ad176ebb13cabe62ee7c07f52a67b4a48cbef83",
5
"gas": "0x61a80",
6
"gasUsed": "0x98d2",
7
"input": "0xda1750b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000404624044d1509a0460ae9dc9236b04602aaee65ef7045e993727d9b3",
8
"to": "0xbbe55e29bbc6d71ecab1ac011c9ac5206ab2fe74",
9
"type": "CALL",
10
"value": "0x0"
11
},
12
"id": 1
13
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free