@ferro/express
Express middleware. Two lines to gate any route behind stablecoin payment.
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.
Pick the package that matches your side of the payment: server middleware, an AI SDK gate, or a buyer client for agents.
Express middleware. Two lines to gate any route behind stablecoin payment.
Hono adapter. Edge-compatible x402 paywall for Cloudflare Workers and Bun.
Buyer SDK. payAndFetch() handles the full 402 challenge-sign-retry loop for agents.
Vercel AI SDK middleware. wrapWith402() or createX402Gate() for any AI route.
@ferro/coreShared verifier used by every adapter: CAIP-2 networks, the x402 v2 wire format, facilitator calls.npm ↗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.
Every 402 response carries a one-time nonce, amount, recipient, token, network, and memo for the caller to satisfy.
The caller retries with X-Pay-Tx and X-Pay-Nonce. Ferro validates settlement before your handler runs.
Successful transaction hashes are rejected on reuse. Bring Redis/Postgres stores when you run multiple workers.
Agents can automate the whole loop, while apps and scripts can use the same paid endpoint contract.
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.
Ferro sits on open pieces. The protocol, the stablecoin and the RPC layer are not ours, and you can swap them.
Browse the gateway, inspect the catalog, or start with an SDK.
Each instant-mode settlement returns a share of the facilitator fee to the seller. Nothing to stake and nothing to claim.
The rate starts at 2% of the fee and steps down as network volume grows. The current rate is always shown in the console.
Cashback arrives in USDC in the same wallet that receives payments. No lockups.
Instant for real-time agent flows. Batched for high-volume, low-cost workloads.
APIs, web pages, datasets and MCP tools all use the same middleware and the same price field.
Splits, receipts, webhooks and discovery ship in the same SDK, so you are not stitching together four vendors to sell one API.
Gate any Vercel AI SDK route with per-call payment. wrapWith402() for agents, createX402Gate() for Next.js/Hono servers.
Send a fixed share of each payment to a co-founder, affiliate or treasury. Splits run in the same transaction, set in basis points.
Add ferro402.xyz/api/mcp as an MCP tool server in your AI client. Agents can inspect endpoints, create invoices, check reputation.
Payments go straight from the buyer to your wallet. Ferro never holds keys, balances or escrow.
SSE stream at /api/feed broadcasts every settlement in real time. Build dashboards, bots, or public tickers on top of it.
CNAME your own subdomain to the Ferro tunnel. Serve hosted /x/<slug> endpoints from api.yoursite.com.
Revenue, endpoints, receipts and keys for every wallet you connect.
robinhood-mainnet is now a supported network in @ferro/core, @ferro/express and @ferro/hono. No config changes for existing routes.
createX402Gate() and wrapWith402() for AI routes. @ferro/fetch reaches 1.0 with spending policies.
Three new rails, plus the accepts option for challenges that list more than one network.
Basis-point splits settle in the same transaction. Signed webhooks for four event types.
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.
| VS. | FERRO | CARD PROCESSOR | L1/L2 NATIVE |
|---|---|---|---|
| Facilitator fee | 0.5% | 2.9% + $0.30 | 0% (you self-host) |
| Settlement | ~400ms | 1–3 days | ~12s |
| Network fee | ~$0.0001 | — | $0.05–2.00 |
| Min transaction | $0.001 | $0.50 | — |
| Currency | USDC, ETH | USD/EUR/… | USDC, ETH |
| Crypto-native | ✓ | — | ✓ |
| Self-host | ✓ | — | ✓ |
Switching rails is a config value, not a rewrite. The same route can accept several networks at once.
Base, Robinhood Chain, Ethereum, Arbitrum, Optimism, Polygon, Solana and Sui, all listed in the public catalog.
Six EVM networks, plus Solana (SVM) and Sui (Move).
USDC across every supported rail, with ETH accepted on Instant mode.
Use the Ferro packages in existing server apps, or integrate against the public HTTP gateway.
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.
An exact stablecoin transfer on-chain. No account and no API key.
Settlement read straight from the chain before the payload unlocks.
Every payment gets a public receipt with its transaction hash.
Batches of receipts are hashed into a Merkle root and written on-chain.
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.
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.