Skip to main content
POST
debug_accountRange
Robinhood Chain API method that enumerates all accounts at a given block with paging capability. This method returns a range of accounts stored in the state trie, providing account details such as balance, nonce, code hash, and storage. It is useful for state inspection and debugging purposes.
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

  • blockNrOrHash — the block number in hex format or block tag (latest, earliest, pending, safe, finalized), or block hash.
  • start — the start key hash for pagination, encoded as hex bytes. Use 0x0000000000000000000000000000000000000000000000000000000000000000 to start from the beginning.
  • maxResults — the maximum number of accounts to return. Capped at 256.
  • nocode — if true, excludes contract bytecode from the result.
  • nostorage — if true, excludes storage data from the result.
  • incompletes — if true, includes accounts without known addresses.

Response

  • result — an object containing the state dump:
    • root — the state root hash of the block.
    • accounts — a map of account addresses to account data:
      • balance — the account balance in Wei.
      • nonce — the account nonce.
      • root — the storage root hash.
      • codeHash — the hash of the account’s contract code.
      • code — the contract bytecode (omitted if nocode is true).
      • storage — the account’s storage slots (omitted if nostorage is true).
      • address — the account address.
    • next — the next key hash for pagination. Use this value as the start parameter in the next call to continue iterating.

debug_accountRange code examples

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:debug_accountRange
params
string · string · integer · boolean · boolean · boolean[]

Block number or tag (latest, earliest, pending, safe, finalized).

Response

200 - application/json

Returns the account range dump.

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