5

I want to check a private state variable with ethers.js. What is the equivalent for web3.eth.getStorageAt ?

2 Answers 2

12

It's also getStorageAt you can find the doc here. It's exposed as a provider method in ethers.js so something in the line of :

await provider.getStorageAt(address, slot); 
4

In Ethers V6 it's now getStorage

await provider.getStorage(address, slot); 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.