This guide walks through the minimum integration to add an embedded wallet to a React application. Users sign in with their socials or email; a smart contract wallet is created automatically on first login. To see a fully integrated demo, check out Mining Quest and its source code.Documentation Index
Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
Use this file to discover all available pages before exploring further.
Step 1: Get your project access key
Go to the Polygon project dashboard, create an account, and set up a new project. From the project dashboard, copy yourprojectAccessKey.
Step 2: Install the SDK
@0xsequence/connect@6 requires wagmi >= 3.2.0 and viem >= 2.45.0.Step 3: Integrate with your React app
Wrap your application with theSequenceConnect provider. The example below also configures an explicit session: a scoped permission that allows your app to transact on behalf of the user without prompting on every action.
The
explicitSession block is optional for basic wallet integration. It enables Smart Sessions: users approve permissions once and your app handles subsequent transactions automatically. Remove it if you only need sign-in and wallet address access.useAccount() and useConnect() are available throughout your app.
Next steps
Authentication
Configure all available auth methods including passkeys and guest wallets.
Smart Sessions
Enable multi-step flows without repeated approval prompts.
Smart Sessions deep dive
Full reference for explicit and implicit session permissions and spending rules.
Wallet configuration
Merkle-based wallet configuration, passkeys, and cross-chain coherency.