debug_accountRange
Debug & Trace | Arbitrum
debug_accountRange | Arbitrum
Arbitrum API method that enumerates all accounts at a given block with paging capability. debug_accountRange on Arbitrum via Chainstack.
POST
debug_accountRange
Arbitrum 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.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
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
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. Use0x0000000000000000000000000000000000000000000000000000000000000000to start from the beginning.maxResults— the maximum number of accounts to return. Capped at 256.nocode— iftrue, excludes contract bytecode from the result.nostorage— iftrue, excludes storage data from the result.incompletes— iftrue, 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 ifnocodeistrue).storage— the account’s storage slots (omitted ifnostorageistrue).address— the account address.
next— the next key hash for pagination. Use this value as thestartparameter in the next call to continue iterating.
debug_accountRange code examples
Use case
Thedebug_accountRange method is useful for building state explorers and performing state audits. By paginating through all accounts at a specific block, developers can analyze the distribution of balances, identify contracts, and inspect the state trie structure. The pagination support via the start and next parameters allows iterating over the full account set without loading the entire state into memory.Body
application/json
Last modified on May 18, 2026