Skip to content

Instantly share code, notes, and snippets.

@Dhaiwat10
Created June 19, 2022 07:21
Show Gist options
  • Save Dhaiwat10/617d9559c32d2f0abeb3b2b19eaac90a to your computer and use it in GitHub Desktop.
Save Dhaiwat10/617d9559c32d2f0abeb3b2b19eaac90a to your computer and use it in GitHub Desktop.
const provider = new ethers.providers.JsonRpcProvider(
'https://rpc.ankr.com/polygon_mumbai',
80001
);
const signer = new ethers.Wallet(process.env.PRIVATE_KEY as string, provider);
const sdk = new ThirdwebSDK(signer, {
gasless: {
openzeppelin: {
relayerUrl: process.env.RELAYER_WEBHOOK_URL as string,
},
},
});
const nftContract = sdk.getNFTCollection(
'0x24bB3E4C3b2611976aA5494790Bd74e20F4CdeD3'
);
const tx = await nftContract.mintTo(recoveredAddress, metadata);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment