PaidOnChain

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.

Quickstart → · GitHub (MIT)

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)

  1. Send ≥ 5 USDC on Base or Arbitrum to 0xB1a65c3a55Cb23B230b3e11C1Ea08504a3099c8e.
  2. POST /v1/credits with your key and {"chain":"base","tx":"0x…"}. PaidOnChain verifies the payment and adds 1000 checks per USDC.

Guides