Skip to main content
This quick-start shows the minimum code required to add Sign in with Base and Base Pay to any React app using the Base Account SDK.

1. Create a new React app

If you’re starting fresh, create a new React app:

2. Install the SDK

Got a peer dependency error?Use --legacy-peer-deps flag if you get a peer dependency error.

3. Replace src/App.js with this component

src/App.js
Note:Make sure to replace 0xRecipientAddress with your recipient address.

4. Start your app

Open http://localhost:3000, click Sign in with Base (optional) and then Pay, approve the transaction, and you’ve sent 5 USDC on Base Sepolia—done! 🎉 Note: If you have an existing React app, just install the SDK (npm install @base-org/account) and add the component above to your project.

Next steps