NetworksPricingDocsChangelogTrustnpm packagesGitHubFollow on X$FERRO Open console
HTTP 402 · USDC · 8 chains

x402 payment rails
for the machineeconomy

Put a price on any HTTP route. Agents and apps pay in USDC per request, and the money lands in your wallet before your handler runs.

Start building

Two lines to charge for anything.

Pick the package that matches your side of the payment: server middleware, an AI SDK gate, or a buyer client for agents.

NPM
npm packages

Four SDKs.
Every side of the payment.

Browse all on npm ↗
v1.1.0Server

@ferro/express

Express middleware. Two lines to gate any route behind stablecoin payment.

$ npm i @ferro/express↗
v1.1.0Server · Edge

@ferro/hono

Hono adapter. Edge-compatible x402 paywall for Cloudflare Workers and Bun.

$ npm i @ferro/hono↗
v1.0.0Agent · Buyer

@ferro/fetch

Buyer SDK. payAndFetch() handles the full 402 challenge-sign-retry loop for agents.

$ npm i @ferro/fetch↗
v1.0.0NEWAI · Agents

@ferro/ai-sdk

Vercel AI SDK middleware. wrapWith402() or createX402Gate() for any AI route.

$ npm i @ferro/ai-sdk↗
+@ferro/coreShared verifier used by every adapter: CAIP-2 networks, the x402 v2 wire format, facilitator calls.npm ↗

Agent Commerce

Agents and applications can charge for API access through a complete HTTP 402 loop: challenge, stablecoin settlement, proof retry, nonce validation, and replay protection. Wallet authorization is only needed for private portal tools.

✓Issued nonce challenge

Every 402 response carries a one-time nonce, amount, recipient, token, network, and memo for the caller to satisfy.

✓Proof retry

The caller retries with X-Pay-Tx and X-Pay-Nonce. Ferro validates settlement before your handler runs.

✓Replay protection

Successful transaction hashes are rejected on reuse. Bring Redis/Postgres stores when you run multiple workers.

✓Agent or app ready

Agents can automate the whole loop, while apps and scripts can use the same paid endpoint contract.

Multichain payment rails

One gateway.
Eight ways to settle.

Choose the network that fits your users. Base is the flagship rail and Robinhood Chain is home to $FERRO; Ethereum, Arbitrum, Optimism, Polygon, Solana and Sui settle in USDC too.

Explore the live rail catalog ↗
Dashboard noteMerchant wallet balances and activity are currently read from the flagship rail. The other seven rails are available through the Ferro SDK/catalog; wallet analytics are not yet unified across chains.
Open ecosystem

Standards first, Ferro second.

Ferro sits on open pieces. The protocol, the stablecoin and the RPC layer are not ours, and you can swap them.

x402
x402Open payment protocol
R
RPCNode infrastructure
$
USDCStable settlement
⇄
DEX$FERRO on Robinhood Chain
F
CommunityFerro holders & builders

Building on Ferro?

Browse the gateway, inspect the catalog, or start with an SDK.

Open the consoleRead the docs

Cashback on every payment

Paid in USDC, no claim step

Automatic rewards

Each instant-mode settlement returns a share of the facilitator fee to the seller. Nothing to stake and nothing to claim.

Decaying rate

The rate starts at 2% of the fee and steps down as network volume grows. The current rate is always shown in the console.

Stablecoin payouts

Cashback arrives in USDC in the same wallet that receives payments. No lockups.

Cashback rate vs. network volume
2.0%1.5%1.0%0.5%0% 050M100M150M200M250M TOTAL SETTLED REQUESTS Launch rate · 2%

Two modes. Pick what fits.

Instant for real-time agent flows. Batched for high-volume, low-cost workloads.

<2s SETTLEMENT

Instant

  • ✓USDC + ETH supported
  • ✓Per-request settlement
  • ✓0.5% facilitator fee
  • ✓Cashback rewards eligible
  • ✓Best for real-time AI agents
0% FEE

Batched

  • ✓USDC only
  • ✓Aggregated settlement
  • ✓No facilitator fee
  • ✓Built for crawlers and high-volume agents
  • ✓Settles every 15 minutes or at $1

If it returns a response, it can charge

APIs, web pages, datasets and MCP tools all use the same middleware and the same price field.

Everything around the payment. Not just the payment.

Splits, receipts, webhooks and discovery ship in the same SDK, so you are not stitching together four vendors to sell one API.

@ferro/ai-sdk NEW

Gate any Vercel AI SDK route with per-call payment. wrapWith402() for agents, createX402Gate() for Next.js/Hono servers.

Revenue splits NEW

Send a fixed share of each payment to a co-founder, affiliate or treasury. Splits run in the same transaction, set in basis points.

MCP server

Add ferro402.xyz/api/mcp as an MCP tool server in your AI client. Agents can inspect endpoints, create invoices, check reputation.

Non-custodial

Payments go straight from the buyer to your wallet. Ferro never holds keys, balances or escrow.

Settlement stream

SSE stream at /api/feed broadcasts every settlement in real time. Build dashboards, bots, or public tickers on top of it.

Custom domains

CNAME your own subdomain to the Ferro tunnel. Serve hosted /x/<slug> endpoints from api.yoursite.com.

The console

Revenue, endpoints, receipts and keys for every wallet you connect.

Changelog

Shipping in public.

Full changelog ↗
v1.1.0

Robinhood Chain rail

robinhood-mainnet is now a supported network in @ferro/core, @ferro/express and @ferro/hono. No config changes for existing routes.

v1.0.0

AI SDK gate and a stable buyer SDK

createX402Gate() and wrapWith402() for AI routes. @ferro/fetch reaches 1.0 with spending policies.

v0.5.0

Optimism, Solana and Sui

Three new rails, plus the accepts option for challenges that list more than one network.

v0.4.0

Revenue splits and webhooks

Basis-point splits settle in the same transaction. Signed webhooks for four event types.

Built for $0.001 transactions.

A card processor charges 2.9% + $0.30, so anything under a dollar loses money. Ferro charges 0.5%, plus a network fee of a fraction of a cent.

recommended
ferro facilitator
0.5%
per settled request
  • ✓~400ms stablecoin settlement
  • ✓Nonce-signed challenges, replay-safe
  • ✓Express, Hono, Fastify SDKs
  • ✓Self-host with BYO RPC
card processor
2.9%
+ $0.30 per transaction
  • —Bank rails, 1–3 day settle
  • —Min $0.50 makes <$1 calls a loss
  • —KYC / business account required
  • —No machine-to-machine auth
self-host
0%
+ your infra costs
  • —Run @ferro/express or @ferro/hono yourself
  • —BYO RPC provider
  • —You verify on-chain, you settle
  • —Open source, MIT licensed
VS.FERROCARD PROCESSORL1/L2 NATIVE
Facilitator fee0.5%2.9% + $0.300% (you self-host)
Settlement~400ms1–3 days~12s
Network fee~$0.0001—$0.05–2.00
Min transaction$0.001$0.50—
CurrencyUSDC, ETHUSD/EUR/…USDC, ETH
Crypto-native✓—✓
Self-host✓—✓
Open by design

One payment flow.
Built for more than one chain.

Switching rails is a config value, not a rewrite. The same route can accept several networks at once.

08
SUPPORTED RAILS

Base, Robinhood Chain, Ethereum, Arbitrum, Optimism, Polygon, Solana and Sui, all listed in the public catalog.

06 + 02
VIRTUAL MACHINES

Six EVM networks, plus Solana (SVM) and Sui (Move).

USDC
SETTLEMENT ASSET

USDC across every supported rail, with ETH accepted on Instant mode.

Express · Hono
PUBLISHED SDK MIDDLEWARE

Use the Ferro packages in existing server apps, or integrate against the public HTTP gateway.

Settlement stream

Every payment leaves a receipt.
Here is what that looks like.

The public stream at /v1/feed carries every settlement as it is confirmed. The rows below are sample data so you can see the shape of it.

PAYERAMOUNTNETWORKWHEN
SAMPLE DATA Click a row to open an example receipt
01
Agent pays

An exact stablecoin transfer on-chain. No account and no API key.

02
Ferro verifies

Settlement read straight from the chain before the payload unlocks.

03
Receipt issued

Every payment gets a public receipt with its transaction hash.

04
Root anchored

Batches of receipts are hashed into a Merkle root and written on-chain.

Proof anchor · example
Batch
batch_FRR7c41Qe09
Merkle root
—
Settlements
96
Anchor tx
queued for next anchor commit

Anyone can rebuild the root from public receipts and compare it with the on-chain value, so you do not have to take our word for it.

WALLET ACCOUNT · API ACCESS · PAYMENT RAILS

Open the Ferro console

Browse docs and payment rails without signing in. Connect your wallet only when you need private tools: endpoint publishing, API keys, receipts, and wallet-scoped settlement history.

WalletConnect QR and browser wallets supported. The console stays readable before connect.

DEFAULT RAILBase 8453 · USDC
SWITCH RAILSnetwork: "robinhood-mainnet"
WHO PAYSAgents, scripts and apps, per call
Copied to clipboard