nft-snapshot
nft-snapshot copied to clipboard
switching to StaticJsonRpcProvider
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.