Skip to main content
This quick-start shows the minimum code required to add Sign in with Base and Base Pay to any web page using nothing but the Base Account SDK. No frameworks, no additional libraries.

1. Install the SDK (Optional)

You can use the Base Account SDK in two ways:

Option A: CDN (No installation required)

Just include the script tag in your HTML - no build tools needed!

Option B: NPM Package

If you prefer to install locally:
Then use ES modules:
This guide uses the CDN approach for simplicity.

2. Copy-paste this HTML file

index.html

3. Serve the file

Any static server will work:
Open http://localhost:3000, click Sign in with Base (optional) and then Pay with Base, approve the transaction, and you’ve sent 5 USDC on Base Sepolia—done! 🎉

Next steps

Please Follow the Brand GuidelinesIf you intend on using the SignInWithBaseButton or BasePayButton, please follow the Brand Guidelines to ensure consistency across your application.