Wallet Interactions

Hi, I’m just looking for a couple answers that I am struggling to find specific answers too and would love any assistance.

Firstly, is it possible for a user to get full access to their wallet, so that they could import it on other providers, for example metamask? If so, what does that process look like?

Secondly, does web3auth allow for ‘allowance’ calls for smart contracts? As the smart contract code I would like to use requires using allowances, so that a user can wager an amount, and the smart contract would use the allowance to take the wager so that I can pay for gas fees and such.

@cjwils201299 Welcome Aboard!

  1. You can enable Interoperability when building your Dapp:
    Interoperability | Documentation | Web3Auth

It will show if the following conditions are met:

  • EVM wallet is on Mainnet (Legacy)
  • Flag on dashboard is ticked.
  1. eth_private_key is used to fetch the private key of the logged in user. It is only available for in-app adapters like openlogin. The private key can then be imported into another provider like Metamask.
async getPrivateKey() {
    const privateKey = await provider.request({
        method: "private_key"
    });
    //Do something with privateKey
}
  1. You can also access app.openlogin.com and go to Authorized Apps , if you have enabled Inteoperability, the private key for your Dapp will be available to be downloaded:

You can create a smart wallet using our partner products like SafeAuth:

Using their Relay Kit, you can pay for gas fees using ERC20 tokens:

I’ve linked an example for the SafeAuth Kit

We have an offer for creating a Safeauth Project with us, you can read more here

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.