This guide uses the Next.js App Router. For Pages Router, refer to the for setup instructions.
Prerequisites
Before starting, you’ll need a Para API key which you can obtain from the . You can learn to create your account and get your API key from the Developer Portal.Installation
Install the Para React SDK and React Query:Using wagmi v3? See additional dependencies required.
Configure Providers
Create a providers component and wrap your application with it. Note the"use client" directive at the top - this is
required for Next.js App Router:
Create a Connect Button
Now you can create a component that uses Para hooks to manage wallet connection:connect-button.tsx
Learn more about the hooks used in this example:
- - Control the Para modal programmatically
- - Access the current wallet data
- - Get account connection status and details