Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement debug_getModifiedAccountsByNumber #1482

Open
Tracked by #1457
georgi-l95 opened this issue Jul 10, 2023 · 1 comment
Open
Tracked by #1457

Implement debug_getModifiedAccountsByNumber #1482

georgi-l95 opened this issue Jul 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@georgi-l95
Copy link
Collaborator

Problem

As a developer I'd like to be able to call debug_getModifiedAccountsByNumber(startNum, endNum)

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

@konstantinabl
Copy link
Collaborator

Implementation would be similar to debug_getModifiedAccountsByHash
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants