feat(l1): implement debug_accountRange RPC endpoint#6698
Conversation
Add debug_accountRange which iterates accounts in the state trie starting from a given hashed address, returning up to maxResults entries. Uses the block's final state root (txIndex-based state reconstruction is a future enhancement). Preimage lookup not yet available so the key (original address) field is null. Part of #6572
|
Lines of code reportTotal lines added: Detailed view |
Execute a block, then query debug_accountRange by block hash. Assert the response contains accounts and next fields.
Summary
debug_accountRangewhich iterates accounts in the state trie from a given starting hashmaxResultsentries with anexthash for paginationCloses part of #6572
Test plan
nextfield works correctlynextwhen no more accounts