[Go to site: main page, start]

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
Use cases
Use cases
  • 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
Constraints
Constraints
  • Both blocks must be present in the node's state history
  • Large block ranges can be slow to compute
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
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"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x828d0386c1122e565f07dd28c7d1340ed5b3315",
    "0x69cda9d6cc6ce05982d0b4fdf9480f2991f39b5a"
  ]
}
Copy
Request params
idinteger
jsonrpcstring
methodstring
Parametersarray
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.
Response
200
The addresses of the accounts modified in the specified block or range
Response params
object
idinteger
jsonrpcstring
resultarray_of_strings
The addresses of the modified accounts.