Skip to main content

debug_traceBlockByNumber RPC Method

Loading...

Updated on
Feb 17, 2026

debug_traceBlockByNumber RPC Method

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

blockNumber
string
REQUIRED
Loading...
object
object
REQUIRED
Loading...
tracer
string
Loading...
tracerConfig
object
Loading...
onlyTopCall
boolean
Loading...

Returns

result
object
Loading...
calls
Loading...
error
Loading...
from
Loading...
gas
Loading...
gasUsed
Loading...
input
Loading...
output
Loading...
revertReason
Loading...
to
Loading...
type
Loading...
value
Loading...
Request
1
curl -X POST "https://docs-demo.zksync-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByNumber",
6
"params": [
7
"0x24b258",
8
{
9
"tracer": "callTracer"
10
}
11
],
12
"id": 1
13
}'
1
curl -X POST "https://docs-demo.zksync-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByNumber",
6
"params": [
7
"0x24b258",
8
{
9
"tracer": "callTracer"
10
}
11
],
12
"id": 1
13
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": "0x0",
6
"error": "0x0",
7
"from": "0x0",
8
"gas": "0x0",
9
"gasUsed": "0x0",
10
"input": "0x0",
11
"output": "0x0",
12
"revertReason": "0x0",
13
"to": "0x0",
14
"type": "0x0",
15
"value": "0x0"
16
}
17
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": "0x0",
6
"error": "0x0",
7
"from": "0x0",
8
"gas": "0x0",
9
"gasUsed": "0x0",
10
"input": "0x0",
11
"output": "0x0",
12
"revertReason": "0x0",
13
"to": "0x0",
14
"type": "0x0",
15
"value": "0x0"
16
}
17
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free