NanoTab lets your agent pay for any paywalled API with USDC on Base mainnet. No ETH needed, no wallet UI — one function call handles the whole HTTP 402 flow. Fee: 0.1% self-host · 2% managed gateway.
1 · Install
npm i @nanotab/agent-sdk
Set your wallet key once: export NANOTAB_WALLET_KEY=0x…
2 · Pay
import { nanotabFetch } from '@nanotab/agent-sdk';
const data = await nanotabFetch('https://gateway.nanotab.dev/keyword/ai%20agents');
3 · The 402 flow, in words
Your agent GETs a paid URL. The gateway answers 402 Payment Required with a machine-readable price (amount, merchant wallet, USDC-on-Base asset).
The SDK signs a USDC payment intent (EIP-191) with your key and retries the request with an X-Payment header.
The gateway verifies — amount ≥ price, correct merchant, USDC on Base, valid signature — then proxies to the origin and returns the data.
Underpay, wrong asset, or bad signature → you get 402 again. Spend is logged to nanotab-spend.log.
Reference
Gateway: https://gateway.nanotab.dev
Chain: Base mainnet (8453) · USDC 0x833589fcD6eDB6e08f4C7c32d4f71B54BdA4B4E5
Fee: 0.1% self-host (10 bps) · 2% managed gateway, split atomically in the payment