Skip to content

Instantly share code, notes, and snippets.

@Dhaiwat10
Created June 18, 2022 13:38
Show Gist options
  • Save Dhaiwat10/27b2649a30e4478964c1a55265e546e2 to your computer and use it in GitHub Desktop.
Save Dhaiwat10/27b2649a30e4478964c1a55265e546e2 to your computer and use it in GitHub Desktop.
const provider = new ethers.providers.JsonRpcProvider(
'https://rpc.ankr.com/polygon_mumbai',
80001
);
const sdk = new ThirdwebSDK(provider, {
gasless: {
openzeppelin: {
relayerUrl:
'<my_webhook',
},
},
});
const nftContract = sdk.getNFTCollection(
'0x24bB3E4C3b2611976aA5494790Bd74e20F4CdeD3'
);
const tx = await nftContract.mintTo(some_address, some_metadata);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment