onefile-unlock

A crypto paywall — the whole thing is this one file. No server to run, no API keys, no database. The buyer pays on-chain; THIS file watches the blockchain and unlocks.

Seller config — edit below in the source:
  1. PRICE_WEI — how much (Base USDC, 6 decimals)
  2. SELLER_0x — your Base wallet
  3. SECRET — anything: a download URL, license key, unlock instructions
  4. Upload the file anywhere (it is fully static). Done — you have a working paywall.
LOCKED — the item below becomes visible after purchase
$1 USDC
Base network (USDC 0x8335…2913) · verified live on-chain, nothing through a server
How it works (all in your browser): when you pay, the page asks a public Base RPC for "transfers of USDC to the seller's address in the last few blocks". The first match ≥ price unlocks the page. The seller can verify the receipt on-chain; buyers get instant, serverless delivery under their own wallet. No KYC, no API, no signups — for either side.
Why `onefile-unlock` exists: static hosting (githack, GitHub Pages, even a USB stick) gives you a globally reachable storefront for zero dollars — the unlocking is the only logic, and it ships inside the same file as the product.