Skip to main content

debug_traceTransaction RPC Method

Returns all traces of given transaction.

Updated on
Apr 29, 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.
To use the debug_traceTransaction method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

Parameters

transactionHash
string

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
string

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

Returns

result
object

The result object containing transaction trace details

type
string

The type of transaction, e.g., 'CALL'

from
string

The address initiating the transaction

to
string

The address receiving the transaction

gas
string

The gas provided for the transaction in hexadecimal

gasUsed
string

The gas used during transaction execution in hexadecimal

value
string

The value transferred in the transaction in hexadecimal

output
string

The transaction output data in hexadecimal, when present

input
string

The transaction input data in hexadecimal

calls
array

Nested calls made during the transaction, when present

type
string

The type of nested call

from
string

The address initiating the nested call

to
string

The address receiving the nested call

gas
string

The gas provided for the nested call in hexadecimal

gasUsed
string

The gas used during nested call execution in hexadecimal

value
string

The value transferred in the nested call in hexadecimal

output
string

The output data of the nested call in hexadecimal

input
string

The input data of the nested call in hexadecimal

calls
array

Further nested calls within the current call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": [
6
{
7
"from": "0x4200000000000000000000000000000000000015",
8
"gas": "0xe9b52",
9
"gasUsed": "0x3fdf",
10
"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",
11
"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",
12
"type": "DELEGATECALL",
13
"value": "0x0"
14
}
15
],
16
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
17
"gas": "0xf4240",
18
"gasUsed": "0xab96",
19
"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",
20
"to": "0x4200000000000000000000000000000000000015",
21
"type": "CALL",
22
"value": "0x0"
23
}
24
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": [
6
{
7
"from": "0x4200000000000000000000000000000000000015",
8
"gas": "0xe9b52",
9
"gasUsed": "0x3fdf",
10
"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",
11
"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",
12
"type": "DELEGATECALL",
13
"value": "0x0"
14
}
15
],
16
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
17
"gas": "0xf4240",
18
"gasUsed": "0xab96",
19
"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",
20
"to": "0x4200000000000000000000000000000000000015",
21
"type": "CALL",
22
"value": "0x0"
23
}
24
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free