Skip to content

Instantly share code, notes, and snippets.

@jarrodlilkendey
Created April 16, 2022 03:27
Show Gist options
  • Save jarrodlilkendey/04af3749e1c47f947308d649ae6bf1b3 to your computer and use it in GitHub Desktop.
Save jarrodlilkendey/04af3749e1c47f947308d649ae6bf1b3 to your computer and use it in GitHub Desktop.
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