Skip to main content
POST
debug_printBlock
Robinhood Chain API method that returns a human-readable representation of a block. Unlike eth_getBlockByNumber which returns structured JSON, this method returns a verbose text dump of the entire block structure including all header fields, transactions, and uncles. The output format uses Go’s spew.Sdump formatting.
Learn how to deploy a node with the debug and trace API methods enabled.
This method is available for post-Nitro blocks only (block 22,207,815 and later). For pre-Nitro blocks, use the arbtrace_* methods instead.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • number — the block number as a decimal integer.

Response

  • result — a human-readable string representation of the block, including all internal fields and nested structures.

debug_printBlock code examples

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:debug_printBlock
params
integer[]

The block number as a decimal integer.

Response

200 - application/json

Returns a human-readable representation of the block.

jsonrpc
string
id
integer
result
string
Last modified on July 18, 2026