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 eth_getStorageAt #52

Closed
Nana-EC opened this issue May 16, 2022 · 0 comments · Fixed by #433
Closed

Implement eth_getStorageAt #52

Nana-EC opened this issue May 16, 2022 · 0 comments · Fixed by #433
Assignees
Labels
enhancement New feature or request P1
Milestone

Comments

@Nana-EC
Copy link
Collaborator

Nana-EC commented May 16, 2022

Implement eth_getStorageAt.

As noted in HIP 482

  • Call /api/v1/blocks/{blockNumber} mirror node REST API as it maps a block number to a consensus timestamp. If the block number is latest or pending, then this API call can be omitted.
  • Using block timestamp or latest call /api/v1/contracts/{id}/results?timestamp=lte:{block.endTimestamp}&limit=1&order=desc to get results.
  • Desired time can then be passed to /api/v1/contracts/{id}/results/{timestamp} to get the contract state information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants