Integrate a Polygon embedded wallet into your React app in three steps.
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.
Wrap your application with the SequenceConnect 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.
Once wrapped, wagmi hooks like useAccount() and useConnect() are available throughout your app.