Coinbase reveals x402 protocol to enable on-chain payments via HTTP
By: bitcoin ethereum news|2025/05/07 05:45:01
0
Share
Coinbase unveiled an open-source protocol for on-chain payments via HTTP called x402. Announced on May 6, the system repurposes the previously unused HTTP 402 “Payment Required” status code to support direct machine-native payments using stablecoins. The protocol enables autonomous agents and applications to pay for API access, data, and services without relying on human intervention, subscriptions, or traditional payment infrastructures. Business models and use cases The core design of x402 enables a server to issue an HTTP 402 response with payment instructions when a client requests a paid resource. Upon receiving the payment requirement, the client, whether a human user or an autonomous agent, can initiate an on-chain transaction and retry the request with a signed payment. This architecture enables microtransactions for content access, context retrieval, and AI inference, making per-use monetization technically feasible and economically viable. x402 is currently available as an open standard with a reference implementation on Coinbase’s GitHub and developer site. According to the exchange, it will open the roadmap for community contributions and decentralized governance in upcoming iterations. The x402 design supports frictionless micropayments across various sectors. In practical terms, AI agents can pay for API access per call, monetize content per article or stream, and sell cloud computing resources by the second or gigabyte. The project’s white paper describes real-world use cases, including per-play gaming models, per-inference AI services, and per-article paywalls for publishers. The protocol also aims to simplify compliance and operational burdens by eliminating the need for PCI certification and exposure to chargebacks. Once confirmed on-chain, all transactions are final, and payment processing is entirely decentralized. Autonomous transactions According to the project’s white paper, x402 addresses long-standing inefficiencies in existing payment systems that rely on account-based setups, delayed settlement, and centralized control. Traditional payment methods such as ACH and credit cards introduce latency, chargeback risk, and human-driven onboarding steps, all incompatible with machine-to-machine (M2M) applications or autonomous AI workflows. By contrast, x402 enables low-latency, irreversible payments with settlement times averaging 200 milliseconds when deployed on rollups. The protocol executes payments using stablecoins, with a chain-agnostic design that allows support for multiple blockchains and tokens. Additionally, x402 facilitates real-time revenue collection through client-server communication that directly integrates signed payments into HTTP requests, eliminating the need for API keys, pre-registration, or manual invoicing. Developer integration The x402 protocol supports a JSON payment request format embedded in the HTTP 402 response. To prevent replay attacks, the server specifies payment details, including the recipient wallet address, network identifier, asset contract address, payment expiration, and a nonce. Clients respond by signing a payment authorization using the EIP-712 standard, which is broadcast on-chain to complete the transaction. EIP-712 defines a framework for structuring, hashing, and signing typed data. It aims to make data signing on Ethereum more human-readable and verifiable. Coinbase provides middleware libraries for Node.js and browser environments, allowing integration with one line of code. The x402 structure also uses wallet interfaces to confirm payments, providing complete transparency into the transaction’s cost, asset, and destination. Developers can access testing environments with mock APIs and wallets and support for batched settlements, layer-2 blockchains, and payment channels. It proposes a foundational change to how internet services interact with money by presenting on-chain payments via HTTP. Source: https://cryptoslate.com/coinbase-reveals-x402-protocol-to-enable-on-chain-payments-via-http/
You may also like

Inter-generational Prisoner's Dilemma Resolution: The Nomadic Capital and Bitcoin's Inevitable Path
When the Baby Boomer generation collectively sells off, who will be the "bag holder" in the next asset crash?

Upstream and downstream are starting to fight, all for the sake of everyone being able to "Lobster"
「Lobster」 may not be a mature product yet, but it has already ushered in a new era of 「AI Assistants」.

Circle and Mastercard Announce Partnership, the Next Stage for the Crypto Industry Belongs to Payments
Stablecoins are transitioning from a speculative tool to real financial scenarios such as payments, cross-border transfers, and store of value.

From 5 Mao per kWh of Chinese electricity to a $45 API export: Tokens are rewriting currency units
When the same unit can both measure hashing power and facilitate payments, it ceases to be just a term and begins to evolve into a new currency of both value and influence.

Why is OpenAI playing catch-up to Claude Code instead?
Anthropic Bets Earlier on AI Programming, OpenAI Strategic Tempo Misaligned

Vitalik wrote a proposal teaching you how to secretly use AI large models
Vitalik believes that in the AI era, users should not have to sacrifice their identity to use an AI tool.

The doubling of Circle's stock price and the paradigm shift of stablecoins
The initial investments from Circle and Stripe, whether it is the R&D expenses for Arc, the high financing costs associated with Tempo, or the billion-dollar acquisitions of Bridge-type assets, are more akin to "placement fees" rather than commercially recoverable investments in the short term.

Key Market Information Discrepancy on March 13th - A Must-See! | Alpha Morning Report
1. Top News: Latest Developments in US-Iran Conflict, Son of Soleimani Vows Revenge, US Navy Plans to Escort Ships in the Strait of Hormuz
2. Token Unlock: $HTM

On-Chain Options Explosion.ActionEvent
Options are becoming the new anchor in the cryptocurrency market.

《Time》 Magazine Names Anthropic as the World's Most Disruptive Company
The most AI-wary company has created the most dangerous AI

Predictions market gains mainstream traction in the US, Canada, Claude launches Chart Interaction feature, What's the English community talking about today?
What Did Foreigners Care About Most in the Last 24 Hours?

500 Million Dollars, 12 Seconds to Zero: How an Aave Transaction Fed Ethereum's "Dark Forest" Food Chain
Spend $154,000 to buy AAVE at market price of only $111

AI Agent needs Crypto, not Crypto needs AI
It is not Crypto that needs AI to survive, but rather AI Agents that need Crypto to be implemented: when AI truly shifts from "thinking" to "executing," it must seek the boundaries of authority and funding within the programmable primitives of Crypto.

Stablecoins are breaking away from cryptocurrency, becoming the next generation of infrastructure for global payments
The use of stablecoins is shifting from facilitating low-cost cross-border remittances to supporting general commercial activities and inter-company vendor payments.

Web3 teams should stop wasting marketing budgets on the X platform
The announcements from the project party are still very important, but they should no longer be the starting point of promotional activities; instead, they should be the endpoint.

Strive buys Strategy stocks, and Bitcoin treasury companies start nesting each other
When everyone's bets are placed on the same table, the difference between "structured financing" and "concentrated gambling" may just be a few more arrows drawn on the PPT.

Strive to buy Strategy stock, Bitcoin Treasury company starts nesting dolls with each other
Bitcoin hodlers are starting to nested be in each other.

Key Market Intel on March 12th, how much did you miss out on?
1. On-chain Funds: $29.7M inflow to Hyperliquid today; $30.9M outflow from Base
2. Biggest Gainers/Losers: $DRV, $LYN
3. Top News: US plans to release 172M barrels of oil to curb prices, on-chain pre-market crude oil gains narrow by 4%
Inter-generational Prisoner's Dilemma Resolution: The Nomadic Capital and Bitcoin's Inevitable Path
When the Baby Boomer generation collectively sells off, who will be the "bag holder" in the next asset crash?
Upstream and downstream are starting to fight, all for the sake of everyone being able to "Lobster"
「Lobster」 may not be a mature product yet, but it has already ushered in a new era of 「AI Assistants」.
Circle and Mastercard Announce Partnership, the Next Stage for the Crypto Industry Belongs to Payments
Stablecoins are transitioning from a speculative tool to real financial scenarios such as payments, cross-border transfers, and store of value.
From 5 Mao per kWh of Chinese electricity to a $45 API export: Tokens are rewriting currency units
When the same unit can both measure hashing power and facilitate payments, it ceases to be just a term and begins to evolve into a new currency of both value and influence.
Why is OpenAI playing catch-up to Claude Code instead?
Anthropic Bets Earlier on AI Programming, OpenAI Strategic Tempo Misaligned
Vitalik wrote a proposal teaching you how to secretly use AI large models
Vitalik believes that in the AI era, users should not have to sacrifice their identity to use an AI tool.