nft-snapshot icon indicating copy to clipboard operation
nft-snapshot copied to clipboard

switching to StaticJsonRpcProvider

Open SimRunBot opened this issue 2 years ago • 0 comments

This saves API Requests to Infura and also speeds up execution. From the ethers docs:

// A StaticJsonRpcProvider is useful when you know for certain that // the backend will never change, as it never calls eth_chainId to // verify its backend. However, if the backend does change, the effects // are undefined and may include: // - inconsistent results // - locking up the UI // - block skew warnings // - wrong results // If the network is not explicit (i.e. auto-detection is expected), the // node MUST be running and available to respond to requests BEFORE this // is instantiated.

SimRunBot avatar May 11 '22 16:05 SimRunBot