NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7.28k stars 1.41k forks source link

Feature request: hardhat network to support eth_getProof #3345

Open yehted opened 1 year ago

yehted commented 1 year ago

Hi, I would like eth_getProof to be part of the supported JSON-RPC methods (https://hardhat.org/hardhat-network/docs/reference#json-rpc-methods-support). I am doing something where I am using merkle proofs, which can be found via that endpoint. FWIW, ganache supports this method (https://github.com/trufflesuite/ganache/issues/382).

github-actions[bot] commented 1 year ago

This issue is also being tracked on Linear.

We use Linear to manage our development process, but we keep the conversations on Github.

LINEAR-ID: 3648f32f-825a-4f7b-91d1-c4e9ed6d771e

alcuadrado commented 1 year ago

First of all, respect for whatever you are doing! First time someone actually asks for this.

Would you be ok if we have eth_getProof for non-forked networks only?

yehted commented 1 year ago

Would you be ok if we have eth_getProof for non-forked networks only?

Yup, that's totally fine

Arachnid commented 1 year ago

With ganache being deprecated, and Anvil's support for eth_getProof broken, it'd be great to see this added. Any hope of support? With all the existing libraries already in use, it feels like it should be relatively straightforward.

darcys22 commented 9 months ago

+1 for this method, we are using it to track the storage merkle root of our contract