debug_getModifiedAccountsByNumber - Robinhood
debug_getModifiedAccountsByNumber. Returns accounts modified between two block numbers.
debug_getModifiedAccountsByNumber - robinhood [Value: 20CU]
Compares state between two blocks identified by number and returns every account address whose state changed
- Build an indexer that reprocesses accounts that actually changed
- Detect which contracts were touched across a range of blocks
- Investigate the blast radius of a specific transaction or exploit
- Both blocks must be present in the node's state history
- Large block ranges can be slow to compute
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Request
Examples
curl https://lb.drpc.live/robinhood/{API-KEY} \
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"debug_getModifiedAccountsByNumber",
"params":[22207815, 22207820],
"id":1,
"jsonrpc":"2.0"}'
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x828d0386c1122e565f07dd28c7d1340ed5b3315",
"0x69cda9d6cc6ce05982d0b4fdf9480f2991f39b5a"
]
}idinteger
jsonrpcstring
methodstring
array
startNuminteger
The block number to check. When endNum is omitted, accounts are compared against this block's parent.
endNuminteger
(optional) The end block number. When provided, returns accounts modified between startNum and endNum.
200
The addresses of the accounts modified in the specified block or rangeobject
idinteger
jsonrpcstring
resultarray_of_strings
The addresses of the modified accounts.