Pre-auditThree days of senior audit time for $1,500, credited in full toward your Zealynx audit.3 audit days, credited toward your auditSee how →

x402

An open payment protocol that uses the HTTP 402 Payment Required status code so clients, including AI agents, can pay for web resources with signed stablecoin authorizations.

x402 turns a paid API call into a short exchange over plain HTTP. The client requests a resource; the server answers with HTTP 402 Payment Required and the payment terms (amount, token, recipient). The client signs a payment authorization and resends the request with it in a header (X-PAYMENT in v1, PAYMENT-SIGNATURE in v2). An x402 facilitator then verifies the payment and settles it on chain. On EVM chains the authorization is an EIP-3009 transferWithAuthorization, not a transaction the client broadcasts itself.

Because no account or API key is needed, x402 suits AI agents that pay for data and tools on their own. Since July 2026 the protocol is run by the x402 Foundation at the Linux Foundation.

The security-relevant property is that verify, serve and settle are separate moments. A server that serves before settlement can be paid once and serve many times (a replay attack), and a server that checks a payment against request-carried terms instead of its own route terms has weak payment binding.

Need expert guidance on x402?

Our team at Zealynx has deep expertise in blockchain security and DeFi protocols. Whether you need an audit or consultation, we're here to help.

Get a Quote