Get User Account

In order for web3 to work and grab the end-users' Ethereum wallet addresses, the users have to login first (similar to unlocking account in MetaMask). You can simply trigger the login for users with the web3 function call below.

Trigger User Login Modal

In accordance with the EIP-1102 update, developers who are using web3 can trigger user login modal with the enable() method in the provider.

Web3 Methods

User login modal can also be triggered through web3 accounts and coinbase functions.

A modal will open to ask users to sign up for an account or login with their mobile phone number.

Last updated

Was this helpful?