hedera-json-rpc-relay
hedera-json-rpc-relay copied to clipboard
Implement `debug_getModifiedAccountsByHash`
Problem
As a developer I'd like to be able to call debug_getModifiedAccountsByHash(startHash, endHash)
Returns all accounts that have changed between the two blocks specified. A change is defined as a difference in nonce, balance, code hash, or storage hash. With one parameter, returns the list of accounts modified in the specified block.
Solution
Possible solution: Get all transactions between the specified blocks and get modified accounts from there.
Alternatives
No response
So after discussion with the team, we think it would be expensive to have this endpoint. In ethereum accounts are both EOA and contrancts, which means we need to check for changes of accounts and also contract state changes. This would require using the /balances endpoint and the /contracts/{contractIdorEvmaddress}/results and making multiple requests. I will remove this from the design doc for now