Created
June 19, 2022 07:21
-
-
Save Dhaiwat10/617d9559c32d2f0abeb3b2b19eaac90a to your computer and use it in GitHub Desktop.
This file contains 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 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