The Base App is an ERC-4337-compatible smart wallet by Coinbase that users can connect to your application. The Base App supports a variety of extended capabilities, like spend permissions, gas sponsorship, sub accounts and more. Learn how to integrate the Base App with Privy in the guide below.Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
1. Set up your React app
First, follow the React Quickstart to get your app instrumented with Privy’s basic functionality. Make sure you have updated your@privy-io/react-auth SDK to the latest version.
Next, configure your React app to show the Base Account as one of the external wallet options that users can use to connect to your application.
To do so, pass 'base_account' to the config.appearance.walletList array.
2. Access the Base Account SDK
Next, in your React app, access the instance of the Base Account SDK using Privy’suseBaseAccountSdk hook.
3. Use Base Account methods
Finally, use methods on the Base Account SDK such asgetProvider, pay, subaccount methods, and more to leverage the capabilities of the Base App in your app.
