I have successfully set up web3auth for my users. However, I have a smart contract/ABI where users can mint the NFT. Typically, this was done via MetaMask and so the onchain activity would take place there. But with web3auth, when the user authenticates with OpenLogin (Google/Apple), that process is a little abstracted. I don’t understand how they are able to interact with a smart contract.
Is there any 3rd party plugin you recommend, or is there a Web2 credit card solution they can utilize, so if they pay by credit card, the transaction is done under the hood and the NFT is transferred to their Google/Apple account?
I just need to know, how is the web3auth users supposed to communicate with a smart contract/ABI? This is typically done with MetaMask, which handles both the authentication and reading of the smart contracts. How can I do the same with web3auth Google/Apple/Open Login?
Hi Shahbaz. I have followed the instructions in the documentation but I am getting extremely high gas fees ($600) for trying a simple mint interaction. I am using web3auth.provider as the provider within ethers.js, and I am reading from the contract correctly, but the gas fee is unusually high. The same exact function works fine if I use MetaMask (window.ethereum). However, MM is not an option because these users are using Google/Apple and does not have MM installed. This is my code: