Back to x402
SDKx402

Coinbase x402 SDK

The reference implementation for x402. TypeScript SDK for building clients and servers that handle per-request USDC payments.

Using USDC on Coinbase x402 SDK

The Coinbase x402 SDK is the official reference implementation of the x402 protocol. It provides TypeScript libraries for both the client side (making payments) and the server side (requiring payments). The SDK handles the full x402 flow: responding with HTTP 402, specifying payment details, verifying on-chain USDC transfers, and delivering content after confirmation. It includes middleware for Express and Next.js, making it straightforward to add payment gates to existing Node.js applications. The SDK supports Base, Ethereum, and Solana, with Base as the recommended default for its speed and low fees.

Supported networks

BaseEthereumSolana

Key features

  • Official reference implementation
  • TypeScript client and server libraries
  • Express and Next.js middleware
  • Multi-chain support
  • Open source (Apache 2.0)

Ready to get started with USDC?

Check out our guides or explore more of the USDC ecosystem.

U
USDC.org

Independent guides to USDC and stablecoins.

Legal Disclaimer: USDC.org is an independent educational resource, not affiliated with Circle Internet Financial. All information is provided for educational purposes only.

© 2026 USDC.org. All rights reserved.

contact@usdc.org