Skip to main content

debug_traceBlock RPC Method

Returns traces of transactions in an RLP-encoded block.

Updated on
Oct 15, 2026

Parameters

block
string
REQUIRED

The RLP-encoded block to trace

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 occurred 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

The result object which contains the following fields:

txHash
string

The hash of the transaction being traced

result
object

An object containing detailed information about the traced transaction

beforeEVMTransfers
array

An array representing EVM transfers that occurred before the execution of the transaction

purpose
string

(Optional) The purpose of the EVM transfer

from
string

(Optional) The Ethereum address initiating the transfer

to
string

(Optional) The Ethereum address receiving the transfer

value
string

(Optional) The value of the transfer, specified in hexadecimal format (Wei)

afterEVMTransfers
array

An array representing EVM transfers that occurred after the execution of the transaction

purpose
string

(Optional) The purpose of the EVM transfer

from
string

(Optional) The Ethereum address initiating the transfer

to
string

(Optional) The Ethereum address receiving the transfer

value
string

(Optional) The value of the transfer, specified in hexadecimal format (Wei)

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

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)

value
string

The integer of the value sent with this transaction

type
string

The type of the call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x41af8ce38d997418e576fc6fc705698b6e91385a30641553a6804b929dfd1a26",
7
"result": {
8
"beforeEVMTransfers": [],
9
"afterEVMTransfers": [],
10
"from": "0x00000000000000000000000000000000000a4b05",
11
"gas": "0x0",
12
"gasUsed": "0x0",
13
"to": "0x00000000000000000000000000000000000a4b05",
14
"input": "0x6bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe2307000000000000000000000000000000000000000000000000000000000092bb0b0000000000000000000000000000000000000000000000000000000000000000",
15
"calls": [
16
{
17
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
18
"gas": "0x1c9c380",
19
"gasUsed": "0x212c",
20
"to": "0x0000f90827f1c53a10cb7a02335b175320002935",
21
"input": "0x104d3a9ee0790a9c57da9adaf7e4adc2eba29c6111a91c7e5783c3d254c33eab",
22
"calls": [
23
{
24
"from": "0x0000f90827f1c53a10cb7a02335b175320002935",
25
"gas": "0x1c29238",
26
"gasUsed": "0x323",
27
"to": "0x0000000000000000000000000000000000000064",
28
"input": "0xa3b1b31d",
29
"output": "0x000000000000000000000000000000000000000000000000000000000092bb0b",
30
"type": "STATICCALL"
31
}
32
],
33
"value": "0x0",
34
"type": "CALL"
35
}
36
],
37
"value": "0x0",
38
"type": "CALL"
39
}
40
},
41
{
42
"txHash": "0x6ad93c68a83d0cc50e719cf985eff514315f31a073a5c7a02db6a996268c2958",
43
"result": {
44
"beforeEVMTransfers": [
45
{
46
"purpose": "feePayment",
47
"from": "0xF8E1fbD1444317bF003d75037B824DeD6B8426c1",
48
"to": null,
49
"value": "0x972b0f88a00"
50
}
51
],
52
"afterEVMTransfers": [
53
{
54
"purpose": "gasRefund",
55
"from": null,
56
"to": "0xF8E1fbD1444317bF003d75037B824DeD6B8426c1",
57
"value": "0x1712d1ff00"
58
},
59
{
60
"purpose": "feeCollection",
61
"from": null,
62
"to": "0x252431E84D5E22435A0c833C2220770c52F59633",
63
"value": "0x95b9e268b00"
64
},
65
{
66
"purpose": "feeCollection",
67
"from": null,
68
"to": "0xa4B00000000000000000000000000000000000F6",
69
"value": "0x0"
70
}
71
],
72
"from": "0xf8e1fbd1444317bf003d75037b824ded6b8426c1",
73
"gas": "0x195ca",
74
"gasUsed": "0x191eb",
75
"to": "0x27446f2da4561934c4b25946314dcbe1f027bbc0",
76
"input": "0x608060405234801561000f575f80fd5b506040516100d13803806100d183398101604081905261002e91610035565b5f5561004c565b5f60208284031215610045575f80fd5b5051919050565b6079806100585f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c80637c2efcba14602a575b5f80fd5b60315f5481565b60405190815260200160405180910390f3fea2646970667358221220ac7f8bc85701850451fee09d06312a70a30ae3f158a3d67138222118ecd63db864736f6c634300081400330000000000000000000000000000000000000000000000000000000000000001",
77
"output": "0x6080604052348015600e575f80fd5b50600436106026575f3560e01c80637c2efcba14602a575b5f80fd5b60315f5481565b60405190815260200160405180910390f3fea2646970667358221220ac7f8bc85701850451fee09d06312a70a30ae3f158a3d67138222118ecd63db864736f6c63430008140033",
78
"value": "0x0",
79
"type": "CREATE"
80
}
81
}
82
]
83
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x41af8ce38d997418e576fc6fc705698b6e91385a30641553a6804b929dfd1a26",
7
"result": {
8
"beforeEVMTransfers": [],
9
"afterEVMTransfers": [],
10
"from": "0x00000000000000000000000000000000000a4b05",
11
"gas": "0x0",
12
"gasUsed": "0x0",
13
"to": "0x00000000000000000000000000000000000a4b05",
14
"input": "0x6bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe2307000000000000000000000000000000000000000000000000000000000092bb0b0000000000000000000000000000000000000000000000000000000000000000",
15
"calls": [
16
{
17
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
18
"gas": "0x1c9c380",
19
"gasUsed": "0x212c",
20
"to": "0x0000f90827f1c53a10cb7a02335b175320002935",
21
"input": "0x104d3a9ee0790a9c57da9adaf7e4adc2eba29c6111a91c7e5783c3d254c33eab",
22
"calls": [
23
{
24
"from": "0x0000f90827f1c53a10cb7a02335b175320002935",
25
"gas": "0x1c29238",
26
"gasUsed": "0x323",
27
"to": "0x0000000000000000000000000000000000000064",
28
"input": "0xa3b1b31d",
29
"output": "0x000000000000000000000000000000000000000000000000000000000092bb0b",
30
"type": "STATICCALL"
31
}
32
],
33
"value": "0x0",
34
"type": "CALL"
35
}
36
],
37
"value": "0x0",
38
"type": "CALL"
39
}
40
},
41
{
42
"txHash": "0x6ad93c68a83d0cc50e719cf985eff514315f31a073a5c7a02db6a996268c2958",
43
"result": {
44
"beforeEVMTransfers": [
45
{
46
"purpose": "feePayment",
47
"from": "0xF8E1fbD1444317bF003d75037B824DeD6B8426c1",
48
"to": null,
49
"value": "0x972b0f88a00"
50
}
51
],
52
"afterEVMTransfers": [
53
{
54
"purpose": "gasRefund",
55
"from": null,
56
"to": "0xF8E1fbD1444317bF003d75037B824DeD6B8426c1",
57
"value": "0x1712d1ff00"
58
},
59
{
60
"purpose": "feeCollection",
61
"from": null,
62
"to": "0x252431E84D5E22435A0c833C2220770c52F59633",
63
"value": "0x95b9e268b00"
64
},
65
{
66
"purpose": "feeCollection",
67
"from": null,
68
"to": "0xa4B00000000000000000000000000000000000F6",
69
"value": "0x0"
70
}
71
],
72
"from": "0xf8e1fbd1444317bf003d75037b824ded6b8426c1",
73
"gas": "0x195ca",
74
"gasUsed": "0x191eb",
75
"to": "0x27446f2da4561934c4b25946314dcbe1f027bbc0",
76
"input": "0x608060405234801561000f575f80fd5b506040516100d13803806100d183398101604081905261002e91610035565b5f5561004c565b5f60208284031215610045575f80fd5b5051919050565b6079806100585f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c80637c2efcba14602a575b5f80fd5b60315f5481565b60405190815260200160405180910390f3fea2646970667358221220ac7f8bc85701850451fee09d06312a70a30ae3f158a3d67138222118ecd63db864736f6c634300081400330000000000000000000000000000000000000000000000000000000000000001",
77
"output": "0x6080604052348015600e575f80fd5b50600436106026575f3560e01c80637c2efcba14602a575b5f80fd5b60315f5481565b60405190815260200160405180910390f3fea2646970667358221220ac7f8bc85701850451fee09d06312a70a30ae3f158a3d67138222118ecd63db864736f6c63430008140033",
78
"value": "0x0",
79
"type": "CREATE"
80
}
81
}
82
]
83
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free