debug_getModifiedAccountsByHash - Robinhood

debug_getModifiedAccountsByHash. Returns accounts modified between two block hashes.

debug_getModifiedAccountsByHash - robinhood [Value: 20CU]
Compares state between two blocks identified by hash 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_getModifiedAccountsByHash",
    "params":["0xf4aab7a559489b816aca197b9a9315b5363a9932c52c3e8bfcf4152588ee096a"],
    "id":1,
    "jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x828d0386c1122e565f07dd28c7d1340ed5b3315",
    "0x21849e99c31e3113a489d7eb0fd4d8c0edbe47af"
  ]
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
startHashstring
The hash of the block to check. When endHash is omitted, accounts are compared against this block's parent.
endHashstring
(optional) The hash of the end block. When provided, returns accounts modified between startHash and endHash.

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.