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.
Interactive Playground: Want to test the SDK functions before integrating? Try our Base Pay SDK Playground to experiment with pay() and getPaymentStatus() functions.
Do you prefer video content?There is a video guide that covers the implementation in detail in the last section of this page.

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!
index.html
For a full example, see example below.

Option B: NPM Package

If you prefer to install locally:
Then use ES modules:
index.html
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.

Video Guide