Skip to main content

debug_traceBlockByNumber RPC Method

Replay the block that is already present in the database.

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_traceBlockByNumber method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

Parameters

blockNumber
string

The block number as a string in hexadecimal format 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

Returns

result
array

An array of result objects, each containing transaction details

txHash
string

The transaction hash

result
object

The result object for a single transaction

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

input
string

The transaction input data in hexadecimal

calls
array

Nested calls made during the transaction

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
{
6
"txHash": "0x423349f6e974da8c7c740e8c3ff9e687c2a579e03fffdbf804366a9956b40cce",
7
"result": {
8
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
9
"gas": "0xf4240",
10
"gasUsed": "0xb496",
11
"to": "0x4200000000000000000000000000000000000015",
12
"input": "0x3db6be2b000007d0000dbba00000000000000009000000006995d0b30000000001759a3700000000000000000000000000000000000000000000000000000000064740db00000000000000000000000000000000000000000000000000000000005b57ba6e5bf8c460f4483449dbdf61b64851133f640fb12cd00491cb6e310929ae48db0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd0000000000000000000000000190",
13
"calls": [
14
{
15
"from": "0x4200000000000000000000000000000000000015",
16
"gas": "0xe9b0f",
17
"gasUsed": "0x489b",
18
"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",
19
"input": "0x3db6be2b000007d0000dbba00000000000000009000000006995d0b30000000001759a3700000000000000000000000000000000000000000000000000000000064740db00000000000000000000000000000000000000000000000000000000005b57ba6e5bf8c460f4483449dbdf61b64851133f640fb12cd00491cb6e310929ae48db0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd0000000000000000000000000190",
20
"value": "0x0",
21
"type": "DELEGATECALL"
22
}
23
],
24
"value": "0x0",
25
"type": "CALL"
26
}
27
},
28
{
29
"txHash": "0x4fe18b407e4389c87702fc3f30d821828f3c4be208cddae679d547ba82d2b13e",
30
"result": {
31
"from": "0xcabba9e7f4b3a885c5aa069f88469ac711dd4acc",
32
"gas": "0x5578",
33
"gasUsed": "0x5578",
34
"to": "0x0000000000000000000000000000000000000000",
35
"input": "0x426c6f636b204e756d6265723a203430363737363932",
36
"value": "0x0",
37
"type": "CALL"
38
}
39
},
40
{
41
"txHash": "0x15bede3924e1b15458c83e50bc1e456b21d1fa5b96b717eb6263500cf5d2aac9",
42
"result": {
43
"from": "0xcabba9e7f4b3a885c5aa069f88469ac711dd4acc",
44
"gas": "0x175fd",
45
"gasUsed": "0x17026",
46
"to": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
47
"input": "0xc91d76250000000000000000000000000000000000000000000000000000000000e7c7d80000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004150f7763170be04ed8b308dec084606999848f33e45e30a3d2da2aa6ce07799805b1c2f2d288658a1feb32fdea08581edf8d774ef1c918da52142f7d33aedb6801b00000000000000000000000000000000000000000000000000000000000000",
48
"calls": [
49
{
50
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
51
"gas": "0x10691",
52
"gasUsed": "0x104c6",
53
"to": "0x65ecb201eaed217c1d5d60efdab20c0756871ec3",
54
"input": "0xc91d76250000000000000000000000000000000000000000000000000000000000e7c7d80000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004150f7763170be04ed8b308dec084606999848f33e45e30a3d2da2aa6ce07799805b1c2f2d288658a1feb32fdea08581edf8d774ef1c918da52142f7d33aedb6801b00000000000000000000000000000000000000000000000000000000000000",
55
"calls": [
56
{
57
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
58
"gas": "0xdf6b",
59
"gasUsed": "0xbb8",
60
"to": "0x0000000000000000000000000000000000000001",
61
"input": "0x8dbd161ad94950d782c7839de40bb75c122830cd4612a857cbefb40e3217a545000000000000000000000000000000000000000000000000000000000000001b50f7763170be04ed8b308dec084606999848f33e45e30a3d2da2aa6ce07799805b1c2f2d288658a1feb32fdea08581edf8d774ef1c918da52142f7d33aedb680",
62
"output": "0x000000000000000000000000fb1d9709fba8ef0fe743c8f373dba7a4f00fa312",
63
"type": "STATICCALL"
64
},
65
{
66
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
67
"gas": "0xc0c4",
68
"gasUsed": "0x25af",
69
"to": "0x7289e4e24fd8fb0382432ee7362c8610ef6f791e",
70
"input": "0xa8af4ff5000000000000000000000000fb1d9709fba8ef0fe743c8f373dba7a4f00fa312",
71
"output": "0x00000000000000000000000000000000000000000000000000000000000000017a0fcc07d246d5b880e3a43678ae9e11dc1ce85697625394d1d3a39eb6c6557d",
72
"calls": [
73
{
74
"from": "0x7289e4e24fd8fb0382432ee7362c8610ef6f791e",
75
"gas": "0xab75",
76
"gasUsed": "0x12f4",
77
"to": "0x6f31d3d041e74b8b88fcab0374c9c37cddc1174b",
78
"input": "0xa8af4ff5000000000000000000000000fb1d9709fba8ef0fe743c8f373dba7a4f00fa312",
79
"output": "0x00000000000000000000000000000000000000000000000000000000000000017a0fcc07d246d5b880e3a43678ae9e11dc1ce85697625394d1d3a39eb6c6557d",
80
"value": "0x0",
81
"type": "DELEGATECALL"
82
}
83
],
84
"type": "STATICCALL"
85
},
86
{
87
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
88
"gas": "0x76f3",
89
"gasUsed": "0x6097",
90
"to": "0xd44f9d1331659f417a3e22c9e29529d498b66a29",
91
"input": "0xabd45d21908fedcc5caf7239bcf304776401fb1a1c7c2b2b244bfb3f8dcde2c539d122ea",
92
"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000286464303664346533373334643032306536336131383961383162326565616336373964643233306400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005d68747470733a2f2f6769746875622e636f6d2f666c617368626f74732f666c617368626f74732d696d616765732f636f6d6d69742f64643036643465333733346430323065363361313839613831623265656163363739646432333064000000",
93
"calls": [
94
{
95
"from": "0xd44f9d1331659f417a3e22c9e29529d498b66a29",
96
"gas": "0x62cb",
97
"gasUsed": "0x4da3",
98
"to": "0x98046008b265df82a0e692eb3eff2a4c4413a7a7",
99
"input": "0xabd45d21908fedcc5caf7239bcf304776401fb1a1c7c2b2b244bfb3f8dcde2c539d122ea",
100
"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000286464303664346533373334643032306536336131383961383162326565616336373964643233306400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005d68747470733a2f2f6769746875622e636f6d2f666c617368626f74732f666c617368626f74732d696d616765732f636f6d6d69742f64643036643465333733346430323065363361313839613831623265656163363739646432333064000000",
101
"value": "0x0",
102
"type": "DELEGATECALL"
103
}
104
],
105
"type": "STATICCALL"
106
}
107
],
108
"value": "0x0",
109
"type": "DELEGATECALL"
110
}
111
],
112
"value": "0x0",
113
"type": "CALL"
114
}
115
}
116
]
117
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x423349f6e974da8c7c740e8c3ff9e687c2a579e03fffdbf804366a9956b40cce",
7
"result": {
8
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
9
"gas": "0xf4240",
10
"gasUsed": "0xb496",
11
"to": "0x4200000000000000000000000000000000000015",
12
"input": "0x3db6be2b000007d0000dbba00000000000000009000000006995d0b30000000001759a3700000000000000000000000000000000000000000000000000000000064740db00000000000000000000000000000000000000000000000000000000005b57ba6e5bf8c460f4483449dbdf61b64851133f640fb12cd00491cb6e310929ae48db0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd0000000000000000000000000190",
13
"calls": [
14
{
15
"from": "0x4200000000000000000000000000000000000015",
16
"gas": "0xe9b0f",
17
"gasUsed": "0x489b",
18
"to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",
19
"input": "0x3db6be2b000007d0000dbba00000000000000009000000006995d0b30000000001759a3700000000000000000000000000000000000000000000000000000000064740db00000000000000000000000000000000000000000000000000000000005b57ba6e5bf8c460f4483449dbdf61b64851133f640fb12cd00491cb6e310929ae48db0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd0000000000000000000000000190",
20
"value": "0x0",
21
"type": "DELEGATECALL"
22
}
23
],
24
"value": "0x0",
25
"type": "CALL"
26
}
27
},
28
{
29
"txHash": "0x4fe18b407e4389c87702fc3f30d821828f3c4be208cddae679d547ba82d2b13e",
30
"result": {
31
"from": "0xcabba9e7f4b3a885c5aa069f88469ac711dd4acc",
32
"gas": "0x5578",
33
"gasUsed": "0x5578",
34
"to": "0x0000000000000000000000000000000000000000",
35
"input": "0x426c6f636b204e756d6265723a203430363737363932",
36
"value": "0x0",
37
"type": "CALL"
38
}
39
},
40
{
41
"txHash": "0x15bede3924e1b15458c83e50bc1e456b21d1fa5b96b717eb6263500cf5d2aac9",
42
"result": {
43
"from": "0xcabba9e7f4b3a885c5aa069f88469ac711dd4acc",
44
"gas": "0x175fd",
45
"gasUsed": "0x17026",
46
"to": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
47
"input": "0xc91d76250000000000000000000000000000000000000000000000000000000000e7c7d80000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004150f7763170be04ed8b308dec084606999848f33e45e30a3d2da2aa6ce07799805b1c2f2d288658a1feb32fdea08581edf8d774ef1c918da52142f7d33aedb6801b00000000000000000000000000000000000000000000000000000000000000",
48
"calls": [
49
{
50
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
51
"gas": "0x10691",
52
"gasUsed": "0x104c6",
53
"to": "0x65ecb201eaed217c1d5d60efdab20c0756871ec3",
54
"input": "0xc91d76250000000000000000000000000000000000000000000000000000000000e7c7d80000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004150f7763170be04ed8b308dec084606999848f33e45e30a3d2da2aa6ce07799805b1c2f2d288658a1feb32fdea08581edf8d774ef1c918da52142f7d33aedb6801b00000000000000000000000000000000000000000000000000000000000000",
55
"calls": [
56
{
57
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
58
"gas": "0xdf6b",
59
"gasUsed": "0xbb8",
60
"to": "0x0000000000000000000000000000000000000001",
61
"input": "0x8dbd161ad94950d782c7839de40bb75c122830cd4612a857cbefb40e3217a545000000000000000000000000000000000000000000000000000000000000001b50f7763170be04ed8b308dec084606999848f33e45e30a3d2da2aa6ce07799805b1c2f2d288658a1feb32fdea08581edf8d774ef1c918da52142f7d33aedb680",
62
"output": "0x000000000000000000000000fb1d9709fba8ef0fe743c8f373dba7a4f00fa312",
63
"type": "STATICCALL"
64
},
65
{
66
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
67
"gas": "0xc0c4",
68
"gasUsed": "0x25af",
69
"to": "0x7289e4e24fd8fb0382432ee7362c8610ef6f791e",
70
"input": "0xa8af4ff5000000000000000000000000fb1d9709fba8ef0fe743c8f373dba7a4f00fa312",
71
"output": "0x00000000000000000000000000000000000000000000000000000000000000017a0fcc07d246d5b880e3a43678ae9e11dc1ce85697625394d1d3a39eb6c6557d",
72
"calls": [
73
{
74
"from": "0x7289e4e24fd8fb0382432ee7362c8610ef6f791e",
75
"gas": "0xab75",
76
"gasUsed": "0x12f4",
77
"to": "0x6f31d3d041e74b8b88fcab0374c9c37cddc1174b",
78
"input": "0xa8af4ff5000000000000000000000000fb1d9709fba8ef0fe743c8f373dba7a4f00fa312",
79
"output": "0x00000000000000000000000000000000000000000000000000000000000000017a0fcc07d246d5b880e3a43678ae9e11dc1ce85697625394d1d3a39eb6c6557d",
80
"value": "0x0",
81
"type": "DELEGATECALL"
82
}
83
],
84
"type": "STATICCALL"
85
},
86
{
87
"from": "0x3c3a8a41e095c76b03f79f70955fff3b03cf753e",
88
"gas": "0x76f3",
89
"gasUsed": "0x6097",
90
"to": "0xd44f9d1331659f417a3e22c9e29529d498b66a29",
91
"input": "0xabd45d21908fedcc5caf7239bcf304776401fb1a1c7c2b2b244bfb3f8dcde2c539d122ea",
92
"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000286464303664346533373334643032306536336131383961383162326565616336373964643233306400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005d68747470733a2f2f6769746875622e636f6d2f666c617368626f74732f666c617368626f74732d696d616765732f636f6d6d69742f64643036643465333733346430323065363361313839613831623265656163363739646432333064000000",
93
"calls": [
94
{
95
"from": "0xd44f9d1331659f417a3e22c9e29529d498b66a29",
96
"gas": "0x62cb",
97
"gasUsed": "0x4da3",
98
"to": "0x98046008b265df82a0e692eb3eff2a4c4413a7a7",
99
"input": "0xabd45d21908fedcc5caf7239bcf304776401fb1a1c7c2b2b244bfb3f8dcde2c539d122ea",
100
"output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000286464303664346533373334643032306536336131383961383162326565616336373964643233306400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005d68747470733a2f2f6769746875622e636f6d2f666c617368626f74732f666c617368626f74732d696d616765732f636f6d6d69742f64643036643465333733346430323065363361313839613831623265656163363739646432333064000000",
101
"value": "0x0",
102
"type": "DELEGATECALL"
103
}
104
],
105
"type": "STATICCALL"
106
}
107
],
108
"value": "0x0",
109
"type": "DELEGATECALL"
110
}
111
],
112
"value": "0x0",
113
"type": "CALL"
114
}
115
}
116
]
117
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free