Created
April 16, 2022 03:27
-
-
Save jarrodlilkendey/04af3749e1c47f947308d649ae6bf1b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const network = { | |
name: "polygon", // replace this with the network your contract is on | |
chainId: 137, // replace this with the ChainID your contract is on | |
_defaultProvider: (providers) => new providers.JsonRpcProvider(process.env.ALCHEMY_URL) | |
}; | |
const provider = ethers.getDefaultProvider(network); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment