⚡ THE x402 ECONOMY IS LIVE — $24.2M settled onchain (last 30 days) · 75M+ agent txs (last 30 days) · 4× more buyers than sellers — see the numbers ↓ (as of )
x402 · USDC on Base mainnet · live

Your content is worth something.
Start charging for it.

Create a paywall link in seconds. Upload your content, set a price — AI agents pay per view in USDC on Base, straight to your wallet.

⚡ The x402 economy · live onchain
Agents are already paying. Sellers are scarce.

Real settlement volume on Base — and a buyer-to-seller imbalance that favours anyone selling first.

$24.2M
Settled volume
USDC on Base · last 30 days · as of
75M+
Agent transactions
last 30 days · climbing daily · as of
94K : 22K
Buyers vs sellers
4-TO-1 · SELLERS WIN
as of
0.1% / 2%
NanoTab fee
self-host 0.1% · managed gateway 2% · as of
94K buyers chasing 22K sellers — list your API now →  ·  see live proof ↓
402 payment required → paywall served200 paid call settled on Base0.1% self-host · 2% managed gateway0 ETH needed · Circle paymaster covers gasUSDC straight to your wallet
For merchants · get paid by agents

How do I get paid when AI agents use my API?

Fill in the form, hand the prompt to any coding agent, and your API starts charging per call. You keep 99.9% of every call, settled in USDC on Base — straight to your wallet. Four steps, plain and simple:

Step 1 · Wallet address

Where should the money go?

Any Ethereum-style address you control — MetaMask, Coinbase Wallet, whatever. Payouts land here in USDC on Base. That’s the only thing you need to decide up front:

0xYOUR_ADDRESS   ← paste this into step 2
Step 2 · Price per call

You set the price

A flat USD price per API call — $0.01, $0.05, whatever your data is worth. Buyers pay exactly this; NanoTab takes its fee automatically (0.1% self-host, 2% managed gateway), you keep the rest.

--price 0.05   ← five cents per call
Step 3 · Your endpoint file

Point at your server code

One command wraps your existing endpoint with the paywall. It shows you a diff and asks before changing anything — nothing happens silently.

npx nanotab protect --price 0.05 --wallet 0xYOUR_ADDRESS ./server.js
Step 4 · Deploy

Ship it — two ways

Easy path: one command deploys to Cloudflare Workers. You’ll need a free CLOUDFLARE_API_TOKEN (dash.cloudflare.com → profile → API tokens → Workers Edit).

CLOUDFLARE_API_TOKEN=xxxx npx nanotab deploy --price 0.05 --wallet 0xYOUR_ADDRESS ./server.js
# → https://my-api.<you>.workers.dev  ✅ live

Own-VPS path: run your server anywhere with a public HTTPS URL (Hetzner + Caddy, Fly.io, Render…). The 402 response must show the public https:// URL, not localhost.

No agent? No problem.

Do it by hand.
No SDK, no agent needed.

A human developer can protect, test and verify an endpoint with plain curl + fetch. Same 4 steps, zero jargon.

1 · Protect

Wrap your endpoint

Same single command. Read the diff, say yes.

npx nanotab protect --price 0.05 --wallet 0xYOUR_ADDRESS ./server.js
2 · Test unpaid

curl it — expect a 402

No payment yet, so the server must refuse with HTTP 402 and tell you how to pay. If you get your data back here, the paywall isn’t on.

curl -i http://localhost:3000/keyword?q=solar
# → HTTP/1.1 402 Payment Required
# → {"x402Version":1,"accepts":[{"scheme":"exact",
#     "network":"base","payTo":"0xYOUR_ADDRESS",…}]}
3 · Pay from any wallet

Send USDC on Base, then retry

Pay the quoted amount in USDC (Base network) to the payTo address from any wallet or exchange — no ETH needed, gas is covered by the Circle paymaster. Then attach the payment proof as a header with plain fetch:

// plain JS — no SDK, no agent
const res = await fetch('https://my-api.<you>.workers.dev/keyword?q=solar', {
  headers: { 'X-Payment': '<base64-payment-proof>' }
});
console.log(res.status); // 200 ✅
console.log(await res.json()); // your data
4 · Deploy

Same two options

Cloudflare token (one command, zero servers) or your own VPS with public HTTPS. Verify from another machine: unpaid curl → 402, paid fetch → 200. Done — you’re collecting.

CLOUDFLARE_API_TOKEN=xxxx npx nanotab deploy --price 0.05 --wallet 0xYOUR_ADDRESS ./server.js
Got WordPress? Skip all of this.

On WordPress? Install the plugin.
Charge for posts in 5 minutes.

The NanoTab Paywall plugin (v0.1.1) puts any post, download, or page behind a USDC paywall — no code, no server, no Stripe account. Readers pay a few cents, you keep 99.9%.

1 · Install

Upload the zip

Download nanotab-paywall.zip (v0.1.1) ⬇, then Plugins → Add New → Upload. Or browse the source on GitHub ↗.

2 · Set your wallet

Where should the money go?

Go to Settings → NanoTab and paste your USDC receiving address (Base network). That’s the whole setup.

3 · Paywall a post

Wrap it in a shortcode

Put premium content between [nanotab price=0.05] and [/nanotab]. Visitors see the price and pay in USDC — humans and AI agents alike.

Learn more

Full walkthrough

Fees, the 402 flow in plain words, and FAQ: the WordPress paywall guide →

For buyers · fund your agent

Set up your agent with
its own wallet in one click.

In plain English: your agent gets its own spending wallet, you put a few dollars of USDC on the Base network into it, then it buys whatever API calls it needs. Three steps: A helper called nanotabFetch handles the paying automatically — first try gets a price tag (HTTP 402), it pays it, retries, and your data comes back (HTTP 200). You never touch ETH or gas.

One-click setup

One command. Wallet + config + backup.

Paste this in a terminal (Node 18+, npm, git). Creates a buyer wallet with sensible defaults — $5 budget, $0.10/call — writes the config, backs up the key, and prints your wallet address + fund instructions.

curl -fsSL https://nanotab.dev/buy.sh | bash
01 · Wallet

Create a buyer wallet

Generates a local key + address. --budget caps total spend, --per-call caps a single call.

curl -fsSL https://nanotab.dev/buy.sh | bash
# → wallet 0x… + fund instructions + backup path
# (or: npx nanotab buy-init — after npm publish)
02 · Fund

Top up with USDC on Base

Send USDC (Base network) to the address above. Just enough to cover your calls — no ETH needed, the Circle paymaster covers gas out of the USDC.

# from any exchange or wallet → send USDC (Base) to:
0xYOUR_NEW_WALLET_ADDRESS
03 · Call

Fetch from code

nanotabFetch handles the whole 402 → pay → retry loop. One function, paid 200 back.

const { nanotabFetch } = require('@nanotab/agent-sdk');
const data = await nanotabFetch('https://my-api.<you>.workers.dev/keyword?q=solar');
console.log(data); // 200 + JSON ✅
The generator

Three fields. One prompt.
Money in.

Tell us where to send the money and what you're selling. We write the brief your agent needs.

No API yet? Say so — e.g. "I have no API yet — build one that…". Your agent will build it.
How it works

Agent does the work.
You get paid.

From zero to a monetised API in one paste.

01

Fill in the form

Wallet, what your endpoint should do, price per call. Get a copy-paste setup prompt.

02

Paste it to your agent

Any coding agent — it builds your endpoint if needed, wraps it with npx nanotab protect, deploys it with public HTTPS, and verifies the 402 + paid-200 flow.

03

Collect USDC

Every call pays straight to your wallet on Base. No ETH, no gas, no signup — gas comes out of the USDC via the Circle paymaster.

Live proof

Real money. Real chain.

Settled on Base mainnet, . Click through to BaseScan.

◆ Live endpoint

SaveShare · $0.05/call

Unpaid call returns 402 with the payment spec. Try it:
nanotab.dev/saveshare/creator/adm.jay ↗

◆ Paid call

0.001 USDC · Base mainnet

Buyer paid, merchant got it. Agent wallet: 0 ETH.
tx 0x0b39b4…23f5b2 ↗

◆ Fee settled

0.1% self-host onchain · EIP-7702

1 unit to NanoTab. Circle paymaster + Pimlico.
tx 0x0e85cf…e947370 ↗

◆ Atomic split

$0.05 in one tx · fee enforced

Single UserOp: [49950 → merchant, 50 → fee]. One tx, 0 ETH.
tx 0x47ac3d…243b60b8 ↗

"First paid call settled while I watched BaseScan — the buyer wallet held zero ETH and the merchant got the USDC. Took an afternoon to wire up."

— early user running a keyword API on the NanoTab gateway

Unpaid → 402

curl https://nanotab.dev/saveshare/creator/adm.jay
{"x402Version":1,"accepts":[{"scheme":"exact","network":"base",
"maxAmountRequired":"5","resource":"https://nanotab.dev/saveshare/creator/adm.jay",
"payTo":"0xc47b6d6a4137373ab169aeeedb95971d4939ef0b",
"asset":"0x833589fcD6eDB6e08f4C7c32d4f71B54BdA4B4E5","fee":"0.1%"}]}

Paid → 200

curl -H "X-Payment: <base64-proof>" https://nanotab.dev/saveshare/creator/adm.jay
{"handle":"adm.jay","video_count":17,"avg_views":580.8,
"top_hook":"Okay, whose email ends in this or maybe this? ..."}

Full walkthrough in the docs ↗.

SafeSpend · live trial

Every payment risk-scored.
Your agent can pause itself.

Each call is scored by Jev (TypeSafe) before it settles. Your agent reads the score and decides: proceed, pause, or escalate to you.

x-risk-score

Score on every call

Paid and unpaid responses carry x-risk-score (0–1) and x-risk-flag headers, plus a risk object in the JSON body with the reason.

agent-side

Pause or escalate itself

One if in your loop: score above your threshold → stop spending and ping you. No dashboard babysitting required.

2% / BYO

Included in the gateway

Managed gateway: scoring bundled in the 2% fee. Self-host: bring your own TypeSafe key, pay TypeSafe directly.

curl -H "X-Payment: <base64-proof>" https://gateway.nanotab.dev/keyword?q=solar
# → x-risk-score: 0.07   x-risk-flag: clean
{"result":…, "risk":{"score":0.07,"flag":"clean","reason":"known buyer, usual pattern"}}

Honest status: live trial — log-only, never blocks a payment. Per-wallet spend caps coming next.

Pricing

One number.

0.1% / 2%

per settled call — 0.1% self-host, 2% managed gateway (as of ). Merchant sets the price.
No monthly fee, no signup, no lock-in.

Your content is worth something.
Start charging for it.