Background placeholder

An open protocol for internet-native payments

The best way to accept digital payments.

Built around the HTTP 402 status code, x402 enables users to pay for resources via API without registration, emails, OAuth, or complex signatures.

No fees

x402 as a protocol has 0 fees for either the customer or the merchant.

Instant settlement

Accept payments at the speed of the blockchain. Money in your wallet in 2 seconds, not T+2.

Frictionless

As little as 1 line of middleware code or configuration in your existing web server stack and you can start accepting payments. Customers and agents aren't required to create an account or provide any personal information.

Security & trust via an open standard

Anyone can implement or extend x402. It's not tied to any centralized provider, and encourages broad community participation.

Web native

Activates the dormant 402 HTTP status code and works with any HTTP stack. It works simply via headers and status codes on your existing HTTP server.

Blockchain Agnostic

x402 is not tied to any specific blockchain, its a neutral standard open to integration by all.

Powering Next-Gen Digital Commerce

x402 unlocks new monetization models, offering developers and content creators a frictionless way to earn revenue from small transactions without forcing subscriptions or showing ads.

AI Agents

Agents can use the x402 Protocol to pay for API requests in real-time.

Cloud Storage Providers

Using x402, customers can easily access storage services without account creation.

Content Creators

x402 unlocks instant transactions, enabling true micropayments for content.

1 Line of Code to Accept Digital Dollars

Just add a single line of code in your app, and you can require a USDC payment for each incoming request.

app.use("/your-route", paymentMiddleware("$0.10", myAddress));
// and thats it!

If a request arrives without payment, the server responds with HTTP 402, prompting the client to pay and retry.

HTTP/1.1 402 Payment Required

x402 allows any web developer to accept crypto payments without the complexity of having to interact with the blockchain.