curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"0x1",
{
"tracer": "callTracer"
}
],
"id": 1
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<array>"
}Returns detailed trace information for all transactions in a specific block identified by block number. This method provides comprehensive debugging information for an entire block, including call traces, gas usage, and execution details for each transaction.
curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceBlockByNumber",
"params": [
"0x1",
{
"tracer": "callTracer"
}
],
"id": 1
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<array>"
}debug_traceBlockByNumber method returns detailed trace information for all transactions in a specific block identified by block number. This method provides comprehensive debugging information including call traces, gas usage, and execution details for each transaction.
blockNumber (string, required) — The block number in hexadecimal format (e.g., "0x1"), or one of the tags: "latest", "earliest", "pending".tracerConfig (object, optional) — Tracer configuration:
tracer (string) — Tracer type ("callTracer" or "prestateTracer").callTracer, each trace contains:
type (string) — Call type (e.g., "CALL", "DELEGATECALL").from (string) — Sender address.to (string) — Recipient address.value (string) — Value transferred in wei (hex).gas (string) — Gas provided (hex).gasUsed (string) — Gas used (hex).input (string) — Call input data.output (string) — Call output data.curl -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0x1", {"tracer": "callTracer"}], "id": 1}' \
https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
debug_traceBlockByNumber method is useful for:
Was this page helpful?