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

Feature Request: Support for Reading Contract State at Specific Block Number #21

Open
mshakeg opened this issue Jan 19, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mshakeg
Copy link

mshakeg commented Jan 19, 2024

Description

Summary:
This feature request proposes the addition of a functionality to JustSmartContracts that allows users to read the state of a smart contract at a specific block number. Currently, users can interact with smart contracts to read their state, but this is limited to the latest block. Ethereum's eth_call method supports specifying a block number for state reading, and integrating this feature into JustSmartContracts would significantly enhance its utility.

Detailed Explanation:
Ethereum smart contracts are dynamic, with their state changing at every block. In many cases, especially for development, testing, or auditing purposes, there's a need to understand the state of a contract at a particular point in its history. The Ethereum JSON RPC API provides the eth_call method, which allows users to specify a block number for executing a call. This feature enables users to query the state of the contract as it was at that specific block.

Incorporating this functionality into JustSmartContracts would allow users to specify a block number when reading the state of a contract. This addition would be immensely beneficial for:

  • Developers and Testers: To debug and test contracts against historical states.
  • Auditors and Researchers: To conduct thorough analyses of contract behavior over time.
  • Users and Investors: To understand contract interactions and states at critical past moments, like before and after significant transactions or events.

Proposed Implementation:
The feature could be implemented as an additional input field in the UI where users can specify the block number for the contract state query. This would augment the existing functionality, offering both "latest" state reading and historical state reading options.

Benefits:

  • Enhances JustSmartContracts' capabilities for blockchain exploration and interaction.
  • Provides a richer, more complete tool for the Ethereum community.
  • Aligns JustSmartContracts with Ethereum's native capabilities, making it a more robust and versatile tool.
@olekon olekon added enhancement New feature or request good first issue Good for newcomers labels Jan 19, 2024
@olekon
Copy link
Owner

olekon commented Jan 19, 2024

Thanks for the proposal. Will definitely add this to my todo-list

@mshakeg
Copy link
Author

mshakeg commented Jul 1, 2024

Hi @olekon just wanted to ask if you think you'll be able to ship this soon? neptunemutual seems to have taken down their tool which worked for the network of the connected wallet provider.

@olekon
Copy link
Owner

olekon commented Jul 2, 2024

I am aftaid not. Unfortunately I don't have much time for maintaining those project 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants