Learn how to combine the Para Modal with EVM wallets.
ParaEvmProvider
is built with wagmi
and @tanstack/react-query
to provide a seamless experience for
integrating EVM wallets into your application in tandem to the Para Embedded Wallets.You can use all of the wagmi
hooks and functionality in your application, including the useAccount
, useConnect
, and useDisconnect
hooks. For more details on using the wagmi hooks, refer to the latest wagmi documentation on their website.Install dependencies
Import components
Configure the providers
ParaEvmProvider
component by wrapping your application content in the QueryClientProvider
and ParaEvmProvider
components. Pass in the required configuration props:ParaEvmProvider
extends Wagmi’s provider functionality, giving you access to all Wagmi Hooksin your application. Place the provider near the root of your component tree for optimal performance.'use client'
directive in Next.js 13+:
dynamic
function to import the provider component with { ssr: false }
.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.
Optionally, you can pass the createLinkedEmbeddedForExternalWallets
prop to include full Para authentication for specific wallets.
This will add a signature verification step for these wallets and will setup a full Para account for the user, including creating Para wallets according to your APi key settings.
Set the modal props
Ethers.js
.