Skip to main content

debug_traceCall RPC Method

Returns the number of possible tracing result by executing an eth call within the context of the given block execution.

Updated on
Oct 26, 2026

Parameters

object
object
REQUIRED

The transaction call object with the following fields:

from
string

The address the transaction is sent from

to
string
REQUIRED

The address the transaction is directed to

gas
integer

The integer of the gas provided for the transaction execution

gasPrice
integer

The integer of the gasPrice used for each paid gas

value
integer

The integer of the value sent with this transaction

data
string

The hash of the method signature and encoded parameters

blockReference
string
REQUIRED

The block number in hexadecimal format, the block hash, or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators

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

diffMode
boolean

When set to true, diff mode returns the differences between the transaction's pre and post-state. The result object will contain a pre and a post object.

Returns

result
object

Call frame returned by callTracer (the default). Other tracers return their own response formats.

from
string

The address the transaction is sent from

gas
string

The integer of the gas provided for the transaction execution

gasUsed
string

The integer of the gas used

to
string

The address the transaction is directed to

input
string

The data given at the time of input

calls
array

(Conditional) An array containing information about internal calls made during the transaction

from
string

The address making the call

gas
string

The gas limit specified for the call

gasUsed
string

The amount of gas used during the call

to
string

The address being called

input
string

The input data for the call

output
string

(Optional) The output data of the call

value
string

The value (in Wei) sent with the call

type
string

The type of call (e.g., CALL or STATICCALL)

calls
array

The sub-calls associated with the call

value
string

The integer of the value sent with this transaction

type
string

The type of the call

error
string

error returned by the Ritual node.

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