Learn how to combine the Para Modal with EVM wallets.
This guide will walk you through the process of integrating EVM Wallets into your Para Modal and Para-enabled application, allowing you to onboard new users and connect with existing users who may already have external wallets like MetaMask, Coinbase Wallet and more.
Para’s EVM wallet integration is powered by , the popular React hooks library for Ethereum. When you configure the ParaProvider
with external wallet support, Para automatically creates and manages the Wagmi provider internally. This means:
externalWalletConfig
Setup is simple - just wrap your app in a provider and pass the appropriate props and configuration options to the provider. Once configured, the Para modal and wallet options will automatically appear in the modal when opened.
Para provides seamless integration with popular EVM wallets including
Safe App Registration: To use Safe as an external wallet, you’ll need to register your application as a Safe App in the . This is required because Safe apps need to run within Safe’s context to ensure proper security and functionality. The registration process involves providing your app’s details and undergoing a review by the Safe team.
Import the wallet connectors and supporting components you need. Adjust the imports based on which wallets you want to support:
Configure the ParaProvider
component by wrapping your application content in the QueryClientProvider
and ParaProvider
components. Pass in the required configuration props:
The ParaProvider
automatically creates and manages the Wagmi provider internally. You only need to provide the QueryClientProvider
- Para handles all Wagmi setup for you.
Para provides two methods to access the Wagmi configuration depending on your use case:
Use the getWagmiConfig
function when you need the configuration inside the ParaProvider context but outside of React hooks:
If you need the Wagmi config before the ParaProvider mounts (e.g., for server-side operations or early initialization), use createParaWagmiConfig
:
The createParaWagmiConfig
function creates the same configuration that ParaProvider would create internally. This enables you to use the config with @wagmi/core
actions before your React app renders.
When using Next.js or other SSR frameworks, proper client-side initialization is crucial since web3 functionality relies on browser APIs. SSR management is the developer’s responsibility, and Para provides the tools to handle it effectively.
If you encounter hydration errors related to @getpara/evm-wallet-connectors
, this indicates that Wagmi’s store hydration is happening too eagerly. Since Para uses Wagmi internally, all apply:
'use client'
directive in Next.js 13+:For advanced SSR scenarios where you want to persist wallet connection state across server renders, implement :
Cookie-based persistence requires proper cookie handling on your server. This is entirely managed by the developer - Para provides the configuration options, but implementation depends on your server framework.
You can also provision linked embedded wallets for external wallets.
In this case, the external wallet would be the Para auth method for the user’s embedded wallet (instead of an email or social login). Embedded wallets would be created according to your API key settings.
To enable this, you can include the createLinkedEmbeddedForExternalWallets
prop to indicate which external wallets this setting should be applied to.
Setting up a dedicated provider component that encapsulates all the necessary providers and modal state management is considered a best practice. This pattern makes it easier to manage the modal state globally and handle session management throughout your application.
After setting up your providers you need to configure the ParaModal component to display the external wallets and
authentication options to your users. You need to pass in the externalWallets
and authLayout
configuration options
to the ParaModal component to control which of the wallets show in the modal that were specified in the provider
configuration.
Modal prop options for customizing the Para Modal are included below. For advanced customization options, refer to
External wallet verification via Sign in With Ethereum adds a verification step during external connection to ensure the user owns the wallet.
Enabling this feature establishes a valid Para session, which you can later use in your app to securely validate wallet ownership.
To enable this, set the following option on your externalWalletConfig
of your ParaProvider
:
Connection only external wallets bypass all Para functionality (account creation, user tracking, etc.) when connecting an external wallet. To enable this, set the following option on your externalWalletConfig
of your ParaProvider
:
Since connection only wallets bypass Para, most Para functionality will be unavailable. This includes linked embedded wallets, external wallet verification, on & off ramping, etc.
For an example of what the Para External Wallets Modal might look like in your application, check out our live demo:
For an example code implementation using EVM Wallets, check out our GitHub repository:
Now that you have integrated EVM wallets into your Para Modal, you can explore more advanced features like signing using
the Para SDK with popular libraries like Ethers.js
.