eth_getStorageAt using web3api

I am attempting to migrate our applications from speedy nodes to web3api.

We need eth_getStorageAt to get implementation abi from proxy contracts. How can we use web3api to do so? Thank you.

this may help you:

Hi i think the code snippet you linked does not serve the same purpose.

For example, this proxy contract https://etherscan.io/address/0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9#code

has an implementation slot (EIP-1967): IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

using eth_getStorageAt with speedy node, we can easily get the implementation at the specified storage slot.

how do you get it with speedy node?

with speedy node and web3.py https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#getstorageat

I understand now, you will need to use a RPC node to use that eth_getStorageAt call.

1 Like