debug_printBlock
Debug & Trace | Arbitrum
debug_printBlock | Arbitrum
Arbitrum API method that returns a human-readable representation of a block. Unlike eth_getBlockByNumber which returns structured JSON.
POST
debug_printBlock
Arbitrum API method that returns a human-readable representation of a block. UnlikeDocumentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
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
Use case
Thedebug_printBlock method is useful for quick debugging when you need a comprehensive view of a block’s internal structure. The human-readable output format reveals all fields including those not typically exposed by standard RPC methods, making it valuable for diagnosing block-level issues and understanding the complete block composition.Last modified on May 18, 2026