Bankless
November 5, 2025

x402: The Key to Internet Money, Micropayments & The AI Agent Economy

Sam Ragdale of Merit Systems breaks down x402, a protocol resurrecting a 30-year-old “payment required” HTTP status code to create a native payment layer for the internet, unlocking a new economy for AI agents and composable APIs.

The 30-Year Wait for Internet Money

  • "It's just been this 402 thing that just sat on the shelf and was like, 'Hey, once we figure out money, we'll take it down and build this thing.' But otherwise, it's just been this empty vehicle."
  • "The business model that fell out of it, which was not planned, was ads. Ads filled the niche of micropayments because we didn't yet have micropayments."
  • The internet’s original architects reserved the HTTP 402 status code for "Payment Required," anticipating a future where users would pay servers directly for resources. However, without a native digital cash system, this standard remained unused for decades.
  • Traditional payment rails like credit cards and bank transfers were unsuitable due to high minimum fees, settlement times, and the risk of chargebacks, which made sub-cent transactions impossible.
  • Ads became the default business model, funding the "free and open internet" by monetizing human attention. This model is now threatened by AI, which can retrieve information without getting distracted by ads.

Crypto Unlocks Micropayments

  • "The reason that stablecoins are a fundamentally better financial technology is that they don't have chargebacks. Once it's settled and confirmed on the chain, you're done."
  • Blockchains like Solana and L2s like Base have made transaction costs low enough for micropayments to be economically viable at scale. A client (human or agent) pings a server, which responds with a 402 code detailing the cost. The client then sends back a signed, one-time-use crypto transaction to unlock the resource.
  • This system is permissionless and removes friction. A settled payment is all the proof needed, eliminating the need for user accounts, enterprise agreements, or credit checks, giving agents first-class access to internet resources.

The Dawn of the AI Agent Economy

  • "The dream is a composable future where you have five different APIs that serve different purposes... you get your agent, you load 10 bucks into it, and you say, 'I'd like to create a relevant news posting shirt and send it to my friend for his birthday.'
  • x402 enables an economy of "composable" APIs, where AI agents can string together multiple paid services—like an image generator, a data feed, and a physical goods checkout—to execute complex tasks.
  • Platforms like x402scan.com are catalyzing explosive growth by solving resource discoverability. In just three weeks, the ecosystem grew from ~25 transactions to ~3 million, and from ~200 resources to ~10,000.
  • While memecoins currently dominate volume, the underlying growth is in utility: thousands of new resources for AI models, enriched data, and even ordering physical goods have been created.

Key Takeaways

  • This isn't just another crypto protocol; it's a fundamental upgrade for the entire internet, replacing the crumbling ad-based model with a direct, machine-readable value layer.
  • The Internet Gets Its Native Wallet. x402 uses crypto to finally fulfill the internet's original vision of direct, peer-to-server payments, unlocking an economy of micropayments for everything from accessing an article to running an AI model.
  • The Ad-Supported Web Is Obsolete. AI agents that retrieve information without viewing ads are killing the web's 20-year-old business model. x402 provides the new economic rails for a pay-per-use internet where value is exchanged for resources, not attention.
  • Build Composable Money Legos. The biggest opportunity lies in creating simple, single-purpose APIs that agents can easily discover and compose. Think of it as building for the App Store of the emerging AI agent economy.

For more insights, watch the full discussion here: Link

This episode reveals how a long-dormant internet protocol, HTTP 402, is being activated by crypto to create a new economy of on-demand, paid API access, fundamentally reshaping how AI agents and users interact with digital resources.

The Forgotten Protocol: What is x402?

  • Sam Ragdale of Merit System explains that x402 is a protocol for gating access to off-chain server resources via crypto payments. It's based on the HTTP 402 "Payment Required" status code, which was created by the internet's original architects in the early 1990s.
  • The internet's founders, including Tim Berners-Lee and Marc Andreessen, anticipated that users would need to pay servers directly for providing resources, especially since servers were extremely expensive at the time.
  • The 402 status code was reserved for this purpose but remained unused because the technology for internet-native micropayments didn't exist. Traditional payment systems like credit cards and bank transfers were too slow, expensive, and cumbersome for small, frequent transactions.
  • Sam notes, "It has remained unused since then. So, it's just been a placeholder... 'Hey, once we figure out money, we'll take it down on the shelf and build this thing.'"

Why Crypto is the Missing Piece

  • The conversation highlights why traditional finance failed to enable the 402 vision and how cryptocurrency provides the ideal solution.
  • Micropayment Inefficiency: Traditional payment rails are ill-suited for micropayments. Sam points out that systems like Stripe have minimum fees (e.g., 30 cents), making sub-dollar transactions economically unviable. Bank wires are even more expensive.
  • The Chargeback Problem: A critical insight from Sam is that every traditional payment method—from credit cards to international wires—carries chargeback risk. This means transactions can be reversed, creating significant overhead and risk for merchants.
  • Crypto's Advantages: Stablecoins on efficient blockchains like Base (an L2, or Layer 2 scaling solution for Ethereum) and Solana offer a solution. They provide final settlement without chargeback risk, and their low transaction fees make micropayments of a cent or less feasible. This creates a trustless system where a server can provide a resource as soon as a payment is confirmed on-chain.

Deconstructing an x402 Transaction

  • Sam provides a clear, step-by-step breakdown of how an x402 interaction works, moving from a simple request to a settled payment and resource delivery.
  • Initial Request: A client (a browser, AI agent, or crawler) pings a server's URL without any payment information.
  • Payment Challenge: The server responds with a 402 status code, detailing the cost, the required payment chain (e.g., USDC on Base), and the schema for the request (e.g., prompts for an LLM).
  • Signed Transaction: The client creates and signs a crypto transfer for the specified amount but does not broadcast it to the network. This acts like a signed check.
  • Second Request: The client sends a new request to the server, this time including the signed transaction in the header.
  • Settlement and Delivery: The server receives the signed transaction, settles it on-chain (often using a "facilitator" to pay for gas), and, upon confirmation, returns the requested resource (e.g., an AI model's output).

The x402 Ecosystem Explosion

  • The discussion turns to the recent, explosive growth of the x402 ecosystem, driven by new tools that improve discoverability and usability.
  • Sam reveals that before his team launched x402scan.com, the ecosystem had only ~25 transactions and 200 resources. In the three weeks since, it has surged to nearly 3 million transactions, $3 million in volume, and 10,000 resources.
  • x402scan.com acts as a discovery and testing layer, solving key friction points. It allows users to find resources, understand their costs and schemas, and provides a standardized interface for developers to test their endpoints, ensuring they work correctly.
  • While 99.5% of the initial volume is driven by memecoin launches—a phenomenon Sam sees as a valuable stress test for the system—roughly 4,500 of the new resources are non-memecoin related, indicating rapid developer interest in building legitimate services.

The Dream of Composability: Money Legos for APIs

  • Sam argues that the true potential of x402 lies in composability—the ability for AI agents to seamlessly combine multiple, independent API services to complete complex tasks.
  • Unlike the current web where APIs are built for a single front-end (e.g., the Facebook app calls the Facebook server), x402 promotes an open ecosystem of interchangeable resources.
  • An Agentic Future: An AI agent could be given a budget (e.g., $10) and a goal, like "create a t-shirt with a relevant news image and send it to my friend." The agent could then call a news API, an image generation API, and a print-on-demand API (like shirt.sh), paying for each service via x402 to complete the task autonomously.
  • Sam frames this as a paradigm shift: "It's kind of like the money Legos of DeFi, that idea, except for APIs offchain." This creates a permissionless environment where developers can build specialized, monetizable services that anyone, or any agent, can integrate.

Reshaping the Internet's Business Model

  • The conversation explores the profound implications of x402 for the internet's dominant, ad-based business model.
  • Sam, a former Google Ads engineer, explains that advertising became the default monetization strategy because micropayments weren't feasible. This "free and open internet" subsidized by ads created the massive dataset used to train today's powerful AI models.
  • The Irony of AI: AI agents, trained on this ad-supported internet, are now poised to destroy that very business model. Agents can retrieve information and execute tasks without getting distracted by ads, cutting off the revenue stream for content creators and publishers.
  • x402 presents a viable alternative. Instead of relying on ads, websites like Forbes or Coindesk could charge a few cents via x402 for direct, ad-free access to an article, creating a more direct and user-friendly economic relationship.

Actionable Opportunities for Builders and Investors

  • Low-Hanging Fruit: Wrap existing Web2 APIs and fractionalize their expensive monthly subscriptions into pay-per-use x402 endpoints. This includes data enrichment services (e.g., LinkedIn/X scrapers), financial data, and weather APIs.
  • AI Resources: The most obvious use case is providing access to raw AI models (LLMs, image, video) and enriched AI services (e.g., fine-tuned models with specialized data).
  • Personal APIs: Individuals can create personal endpoints for tasks like booking a meeting on their calendar or sending a priority email, directly monetizing their time and attention.
  • Composable Tools: Build resources designed specifically for agentic workflows, such as specialized search, news, or web crawling endpoints that can be easily chained together.

Conclusion

  • The rise of x402 signals a foundational shift toward a programmable, agent-driven economy on the internet. For investors and researchers, this creates an urgent need to monitor the development of this new API marketplace, identify emerging standards for reputation and discovery, and anticipate the disruption of legacy ad-based business models.

Others You May Like