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.