Verify USDC payments on-chain in one call.
An open-source library and hosted API that checks a transaction really paid your address. It reads the real USDC contract, counts confirmations and sums the transfers. No Stripe, no KYC processor, no custody: buyers pay you directly.
import { verifyPayment } from "paidonchain";
const r = await verifyPayment({
chain: "base",
tx: "0x…",
to: "0xYourAddress",
minAmount: "19",
});
// { ok: true, paid: "19", from: "0x…", confirmations: 7 }Pricing
Free
The MIT library, forever. Self-host on Node, Workers, Deno or Bun.
100/mo free
Hosted API: POST /v1/keys for a key, no signup form. Errors and RPC failures are never billed.
0.001 USDC
per verification beyond the free tier. Prepay from 5 USDC; credits never expire.
Buying credits (we bill with our own product)
- Send ≥ 5 USDC on Base or Arbitrum to
0xB1a65c3a55Cb23B230b3e11C1Ea08504a3099c8e. POST /v1/creditswith your key and{"chain":"base","tx":"0x…"}. PaidOnChain verifies the payment and adds 1000 checks per USDC.
Guides
- Quickstart: verify a USDC payment in one callVerify USDC payments on Base and Arbitrum with the free open-source library or the hosted API. No Stripe, no custody.
- Accept USDC payments in Next.js on Base (no Stripe)Step-by-step: accept USDC on Base in a Next.js app, verify the payment server-side and prevent replay. No KYC payment processor needed.
- Telegram bot USDC payments: verify on-chain, deliver automaticallySell access or files from a Telegram bot for USDC on Base or Arbitrum. Verify the tx on-chain and deliver automatically.
- Build a USDC paywall on Cloudflare Workers (free tier)Sell digital downloads for USDC on Cloudflare Workers: server-side on-chain verification, KV replay protection, expiring download tokens.
- How to verify a USDC payment on-chain (and the fake-token trap)How USDC payment verification works: transaction receipts, Transfer event logs, confirmations, and why you must check the token contract address.