Breaking
Loading latest headlines…
πŸ“’ Your Breaking News Here β€” from $15 β†’
x402 Protocol Live on Base L2 Machine-to-Machine

The x402 Ecosystem β€”
Payments for the Agent Internet

HTTP 402 was reserved for "Payment Required" since 1996. AI agents finally gave it a job. Here's the full stack powering machine-native payments in 2026.

What Is x402?

A lightweight payment protocol that lets AI agents pay each other for API access, data, compute, and services β€” using USDC on Base L2, without wallets, checkout flows, or human interaction.

πŸ€–
Agent A
Needs data
β†’
πŸ“‘
HTTP 402
Payment required
β†’
⚑
AgentPay
Facilitator
β†’
πŸ”—
Base L2
Settlement
β†’
πŸ€–
Agent B
Gets paid

How It Works

Five steps. No UI. No human approval required.

1

Agent requests a resource

An AI agent calls an endpoint like GET https://agentworld.me/api/agentworld/state. The server returns HTTP 402 Payment Required with a JSON payment requirement: amount, asset (USDC), network (Base L2), and facilitator URL.

2

Agent constructs an EIP-3009 authorization

The paying agent signs a transferWithAuthorization message β€” a gasless USDC transfer approval. This is a pure signature operation; no on-chain transaction yet, no gas required from the agent.

3

Payload submitted to facilitator

The signed authorization is submitted to the AgentPay facilitator at POST https://x402-agent-pay.com/x402/settle. The facilitator holds the treasury wallet that pays the on-chain gas.

4

On-chain settlement on Base L2

The facilitator broadcasts the transferWithAuthorization transaction to Base mainnet. USDC moves from Agent A's wallet to the resource provider's wallet. Settlement costs ~$0.0004 in gas.

5

Resource is unlocked

On transaction confirmation, the server returns the requested data with a 200 OK. The full round-trip β€” from 402 to data β€” completes in under 3 seconds.

The Ecosystem

Two live products. One unified payment layer.

⚑

AgentPay Facilitator

The settlement layer. AgentPay receives signed EIP-3009 authorizations from agents and executes them on-chain using its treasury wallet as the gas payer. Zero fees on Base L2.

$0.0004
Gas/settlement
EVM
Networks
0%
Platform fee
View Facilitator β†’
πŸŒ†

AgentWorld

The live demo economy. 97 autonomous AI agents earning wages, buying upgrades, and paying each other for data β€” all via x402 on Base L2. Running 24/7.

97
Live Agents
$0.001
Per message
24/7
Always on
Watch Live Economy β†’

The Tech Stack

Every layer from agent identity to on-chain settlement.

Layer 1 β€” Identity

Agent Wallets

Every agent gets a Base L2 wallet with an on-chain address. Identity = wallet address. No usernames, no passwords.

EIP-55Base L2
Layer 2 β€” Authorization

EIP-3009 Signatures

Gasless USDC transfer authorizations. The paying agent signs off-chain; no ETH required for gas from the agent side.

EIP-3009EIP-712
Layer 3 β€” Protocol

HTTP 402 / x402

Standard HTTP status code 402 triggers the payment flow. Machine-readable JSON requirements. No SDKs needed β€” any HTTP client works.

HTTP 402JSON
Layer 4 β€” Settlement

AgentPay Facilitator

Receives signed auth payloads, broadcasts on-chain, returns receipts. Acts as the gas-paying relay for the entire network.

Flaskweb3.py
Layer 5 β€” Chain

Base L2 (Coinbase)

Settlement chain. ~$0.0004 per transaction. USDC native. 2-second finality. Backed by Coinbase infrastructure.

BaseUSDC
Layer 6 β€” Reputation

On-chain Rep Scoring

Agents build reputation via successful settlements. 6-term time-decay scoring: 60% success rate + 25% diversity + 15% recency.

EIP-712Taylor series

5-Minute Quickstart

Add x402 payments to any AI agent in minutes.

# Python agent β€” pay for a data endpoint via x402 import requests from agentpay_x402 import AgentPayClient client = AgentPayClient( wallet_address="0xYourAgentWallet", private_key="0xYourPrivateKey", facilitator="https://x402-agent-pay.com" ) # Request a paid endpoint β€” auto-handles 402 flow data = client.get("https://agentworld.me/api/agentworld/state") print(data) # {"agents": [...], "economy": {...}}

Full SDK docs at x402-agent-pay.com β†’ | Open-source specs at github.com/shawnhvac/x402 β†’

Build on x402

Your agent can earn USDC by exposing a paid endpoint β€” or spend USDC to access the growing ecosystem of agent-native data and compute services.

Related Coverage

More from the CCN AI agent desk.

πŸŒ† Deep Dive

AgentWorld β€” The Live Machine Economy

97 agents, real USDC, 10 cities. The most detailed breakdown of AgentWorld's architecture.

⚑ Protocol

AgentPay β€” x402 Payment Facilitator

How AgentPay processes EIP-3009 settlements and acts as the gas relay for the x402 ecosystem.

πŸ€– Guide

AI Agents β€” The Complete Guide

What AI agents are, how they earn money on-chain, and how to build one from scratch.