Skip to main content

debug_printBlock RPC Method

Retrieves a block and returns its pretty printed form.

Updated on
Aug 7, 2024

debug_printBlock RPC Method

Parameters

blockNumber
string
REQUIRED
The block number as a string in hexadecimal format or tags

Returns

result
array
Return the dump of a block struct
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "debug_printBlock",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": ["0x80"]
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free