Back to Injective Agents
x402 · HTTP for money

HTTP for money. Now on Injective.

The web returns ~1 billion HTTP 402s every day. Almost none of them settle. Here's what happens when they do — on a chain fast enough to feel free.

What is x402?
The data being purchasedHTTP 402 · payment required
TSLA/USDC PERP
$••.•••••••
Live perps data from Injective's on-chain orderbook · 1¢ to unlock
Injective EVM 1¢ USDC, settled on-chainTechnical details →
What you're about to see

x402 is HTTP's "payment required" status code. With it, any API can charge a few cents per request — settled on-chain in under a second. No account, no API key, no monthly bill.

Think of it as a transit card for the internet — tap to pay per ride, no monthly pass, no signup at the gate.

01
The AI agent
An autonomous program — a chatbot, trading bot, or research assistant — that needs data. It carries a small USDC balance to pay as it works.
02
The API
A web endpoint — here, live Injective perps market data. Instead of requiring signup, it replies "HTTP 402: please send 1¢ USDC" and waits.
03
Injective
The blockchain that settles the 1¢ USDC payment in ~842ms. The API verifies the payment, unlocks the data, and the agent moves on.
Who pays?In this demo, the AI agent pays — from a wallet it controls. You, the visitor, don't spend anything.
The old way vs. x402

Payments built for humans, retrofitted for the web.

Every API today assumes the customer is a person with a signup form, a credit card, and a month of patience. None of that works for an AI agent. x402 turns a single HTTP request into the unit of payment.

The old way5 steps · days to weeks
  1. Create an account with the API provider. Forms, emails, captchas.
  2. Add a payment method. KYC, approvals, hold periods.
  3. Buy credits or a subscription. Prepay; overpay or run out.
  4. Manage an API key. Store it. Rotate it. Hope it doesn't leak.
  5. Make the call. Get charged. Settle days later. Worry about chargebacks.
With x4023 steps · ~1 second
  1. The agent makes an HTTP request. No account, no key.
  2. The server replies HTTP 402: 1¢ in USDC. The agent pays.
  3. Access granted. Settled on-chain. Receipt is the only credential.
How x402 works

A request, a price tag, a receipt, the data.

Six steps. Three actors. About one second from start to finish.

AI agentAPIInjective
  1. 01 AI agent
    Ask
    Request the data
    GET /api/perps
    The AI agent makes an ordinary HTTP request — no signup, no key.
  2. 02 API
    Quote
    Reply: 1¢ to unlock
    HTTP 402 · price: $0.01
    Instead of data, the API returns a price tag. This is what x402 adds to HTTP.
  3. 03 AI agent
    Sign
    Sign a USDC payment
    0.01 USDC → API's wallet
    The agent signs a one-cent USDC transfer with its own key. No human in the loop.
  4. 04 Injective
    Settle
    Settle on Injective
    ~842 ms · finalised
    Injective confirms the payment on-chain. The agent gets a cryptographic receipt.
  5. 05 AI agent
    Retry
    Retry with receipt
    GET + X-Payment: 0x9a47…
    Same URL, this time with proof the cent was paid.
  6. 06 API
    Deliver
    Return the data
    200 OK · live perps
    The API verifies the receipt on-chain and serves the response. Done.

One request. One payment. One unlocked API response.

-ms target
Request Price Pay Settle Unlock
Press the button. The agent will spend 1¢ on data.
Settled in125-375ms

Single-block finality

Paid$0.01 USDC

10000 atomic units

Network fee$0.0003

0.0003 INJ

Keys to manage0

Agent wallet, signed in-flight

Why this matters

The internet learns to charge AI — by the cent.

Today every API needs a signup form, a key, a subscription, a credit card. None of that works when an AI agent is the customer. x402 makes a single request the unit of payment.

For end users
Your AI assistant fetches live perps data — without you signing up for anything.

Ask your assistant for live perps prices, funding rates, or open interest. It pays the API a fraction of a cent and answers. You never see a paywall, never enter a card.

For agent builders
Give your agent a $5 balance. Watch it spend a cent at a time.

Stop pre-negotiating API contracts. Your agent buys what it needs, when it needs it — search, compute, data, tool calls. Hundreds of micro-payments inside one user request.

For API owners
Monetize per call, not per month. Reach the AI traffic you can't today.

Wrap any endpoint with the x402 boundary. Get paid for every successful call — from anyone, no signup required. Built for agents that don't have human accounts.

x402 is not Injective's idea

It's the internet's payment standard.
We're bringing it to sub-second, sub-cent on-chain settlement.

x402 is governed by the Linux Foundation. Founding members include Coinbase, Stripe, Cloudflare, AWS, Google, Visa, Mastercard, Circle, and Shopify. Injective is the chain making 1¢ payments actually feel like 1¢.

"Open protocols built the internet. Payments should be one of them."
Linux FoundationStewards of x402 since April 2026
"Sending value online should be as simple as sending an email."
CoinbaseOriginal author of the x402 protocol
"Secure, frictionless payments are foundational for AI agents, not optional."
AWSFounding member, x402 Foundation
In the foundation
CoinbaseCloudflareStripeAWSGoogleVisaMastercardAmerican ExpressCircleShopifyMicrosoftSolana FoundationPolygonFiservAdyen+ more

Build it

Make any API payable per request.

Wrap an endpoint with the x402 boundary. An unpaid request returns a price. A paid retry unlocks the response through the same server-side adapter this demo uses.

$npm install @injectivelabs/x402
import express from "express";
import { injectivePaymentMiddleware } from "@injectivelabs/x402/middleware";
const app = express();
app.use(injectivePaymentMiddleware({ "GET /perps": { accepts: [{ network: "eip155:1776", asset: "0xa00C59fF5a080D2b954d0c75e46E22a0c371235a", amount: "10000" }] } }, { facilitatorUrl: process.env.X402_FACILITATOR_URL! }));
app.get("/perps", (_req, res) => res.json({ markets: [] }));
Technical details for developers
Networkeip155:1776
Settlement asset0xa00C59fF5a080D2b954d0c75e46E22a0c371235a
Schemex402 exact payment
FacilitatorChecking
ResourceGET /api/x402/perps/market-data
Adapter modemock
ERC-8004 v1.2·Injective EVM · Chain ID 1776
Offline