For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Using PnP Web Modal SDK

Embedded Wallets provides a comprehensive set of functions to handle authentication, user management, and blockchain interactions in your applications. These functions allow you to implement features like user login, multi-factor authentication, chain switching, and Wallet Services with minimal effort. Each function is designed to handle a specific aspect of Embedded Wallets' functionality, making it easy to integrate into your projects.

List of functions​

tip

For detailed usage, configuration options, and code examples, refer to the dedicated documentation page for each function.

Authentication functions​

Function NameDescription
connect()Displays the Modal and logs in the user.
logout()Logs out the user from the current session.

User management functions​

Function NameDescription
getUserInfo()Retrieves the authenticated user's information.
getAuthTokenInfo()Gets the idToken from Web3Auth for authentication purposes.

Security functions​

Function NameDescription
enableMFA()Enables Multi-Factor Authentication for the user.
manageMFA()Redirects the user to manage their MFA settings in the Web3Auth Account Dashboard.

Blockchain functions​

Function NameDescription
addChain()Adds chain configuration details to the connected adapter.
switchChain()Switches to a different blockchain network as per chainId already added to chain config.

Wallet Services plugin functions​

Function NameDescription
showCheckout()Initiates cryptocurrency top-up for the user.
showWalletConnectScanner()Displays the WalletConnect QR Code Scanner.
showWalletUI()Shows the Embedded Wallet UI.
showSwap()Displays the swap UI for token exchanges.
showTransactionConfirmation()Shows the transaction confirmation UI.