🦊MetaMask
For Mobile Users
Users are directed to the internal browser within the MetaMask app if they already have the native app installed; otherwise, they are redirected to the app store page.
Signing out and switching accounts (v2.3.1+)
logout() disconnects your site from MetaMask: the SDK revokes the accounts permission the extension granted when the site first connected. The next login() therefore opens MetaMask's connect window with its account list, so the user can pick another account. login({ forceLogin: true }) does both in one call while a user is signed in.
await sdk.logout() // the site is disconnected from MetaMask
const eoas = await sdk.login() // MetaMask asks for the account again
// or, in one call:
const eoas2 = await sdk.login({ forceLogin: true })UI
[Popup] Connect with MetaMask
Condition to happen
The first time a user connects to the web application (URL) with MetaMask, and — from SDK v2.3.1 — after every logout(), which disconnects the site.
Impact
Popup request opens up for users.
When to happen in your web-application
When users login to Metamask.


[Popup] Allow this site to switch the network ?
Condition to happen
For the first time user connects Metamask to Polygon or Amoy network.
Impact
Popup request opens up for users.
When to happen in your web-application
Whenever uses sign for blockchain tx such as create SRR or transfer ownership.



[Popup] Signature Request
Condition to happen
sdk.signMessage is invoked / sdk.signMessage
Impact / 影響
Popup request opens up for users
When to happen in your web-application
When user signs the message sdk.signMessage()

Network Error
When network error occurs, please go to Settings > Networks on MetaMask, select active network, and change New RPC URL to the live one selected from the list below.

Last updated
Was this helpful?