PayOnce

An AI agent checks that the receiving account belongs to the name on the invoice, then pays exactly once.
The four outcomes are Match, Close match, No match, and Not possible — the same ones EU banks show (Reg 2024/886). Concordium testnet only. No mainnet payments, no real money. Built for the Encode Club × Concordium Trusted Agents Hackathon.
Others check that a payout address is the agent’s registered wallet (for example VeriFlow’s payTo == agentWallet, and x402-doctor’s payee check). We check a different thing: that the account belongs to the name on the invoice.
Live: 60-second demo · app · census · API · CI
A judge path, hard questions and limits: JUDGES.md. Threats and what the chain does not verify: THREAT_MODEL.md. Machine-readable: llms.txt (also at /llms.txt on the site).
60 seconds
Open /demo. Six screens, one button each: a Match payment, an impostor stopped, the chain refusing a forced pay (PayeeNotMature, -29), and a second payment refused on chain (WrongStatus, -5). When GET /api/demo/run has a fresh run (live:true, less than an hour old) you are watching that run; otherwise a labelled replay of a recorded one.
Then, if you have a Concordium testnet wallet (Browser Wallet 2.10+ or CryptoX Android): /app?dash=1 is the dashboard (prove your name, become a payee, get paid, pay someone with a verdict). /app without the flag is the original Run-it page on payable registry v2.
On the official Agent Registry
Four PayOnce agents hold a valid Concordium badge on the official CIS-8004 registry <12802,0> (testnet). Concordium's own check returns badge_valid: true, 15/15, no issues. Each agentWallet is bound by that wallet's own signature:
Seller #1476 JyP9XawpXHMjTN5ocrA5a · Buyer #1488 JyP9Xp5bhbLsQrw7yTyph · Seller 2 #1506 JyP9Y9nGU4KaM7DBDXRgm · check_payee service #1554 JyP9UE8M6sTcxSaorAr8W.
The cards are hosted on our domain under /.well-known/registry/. Transactions, raw check output and how to re-run it: docs/REGISTRY.md.
Payments run in CCD or EUDemo (the testnet euro PLT), with the same payee check on both. EUDemo run, buyer paid no fees: docs/EUDEMO.md.
What is real today, and what is not
| Part |
Status (28 Nov 2026) |
/demo on the v3 demo book <13173,0> (90 s cooling-off; a production book would be 24 h+, set at init) |
Live. Fresh runs up to 30/day. Stand-in invoice name: “PayOnce Labs” (labelled). |
Payee book v3 <13172,0> (600 s cooling-off) and the demo book, both on module 8641046e… |
Live and verified. CCDExplorer shows the module as Verified. CI checks on every push that source == deployed module: the archive matches src/, the module hash matches the ref, the node serves those bytes and both books run it (verify-v3-module), and a rebuild in Concordium's pinned image reproduces it (verify-v3-build). |
Payable registry v2 <13150,0> |
Superseded by v3 (no payee book). Kept only for the older Run-it page (/app without ?dash=1). Not a verified build. |
check_payee (GET /api/vop/check, /api/check-payee) |
Live, testnet full check; network=mainnet is identity-only (never Match, never payable). |
Dashboard routes (/api/payee/propose, /api/getpaid, /api/p/:account/pay-tx, /api/record/:account) |
Live on the demo book. Close match needs a wallet-signed approval (approval=<id>); approved=1 alone is refused. Not possible cannot be acknowledged and is refused. |
Census of the official registry (GET /api/census, /app/proof/census) |
Snapshot 28 Nov 2026, 07:26 UTC: at most 5 of 5,501 mainnet agents, and 3 of 1,553 on testnet, meet the preconditions of a payee check (an upper bound). |
| x402 services run by other teams |
Listed, probed (free), and payable by a capped reference buyer on Match only. |
PayOnce sells check_payee over x402 |
Live: GET /api/x402/check-payee?payee=&name= answers 402 (0.01 CCD, fee sponsored), then the verdict. A2A message/send at /a2a. CLI/MCP: npx payonce-check-payee, npx payonce-mcp. |
| EUDemo rail |
The guard runs in our API before the transfer. The contract cannot see tokens. |
| 18+ check |
Hosted prover with one PayOnce testnet credential, not the visitor’s wallet. Visitor wallet routes are not live. |
| Human approval of a Close match |
Server side live: the payer's wallet signs a message naming the payee, name, amount, verdict evidence hash, invoice hash and expiry (POST /api/approvals/request, /api/approvals/:id/verify). It is checked against the account keys on chain, hash-chained into the receipt ledger and anchored. The page still shows the click until the dashboard wires the wallet signature. |
Red team: live attack catalogue (GET /api/proof/attacks, scorecard file) |
30/30 attacks refused with the expected code, 18 distinct on-chain refusal codes (-2 … -36): node dry runs of the exact attacker transactions plus re-read finalized refusals and API attacks. Re-run with ?fresh=1. |
False-green benchmark (GET /api/proof/false-green, cases) |
0 false MATCH, 0 false payable in 1,011 impostor checks (lookalike names, homoglyphs, lookalike and alias addresses), seed 20261128, through the production checker with live chain facts. |
Verdict receipts (GET /api/vop/ledger, /head, /verify) |
Hash-chained; the head is anchored with registerData PVOH1 at most every 6 h and after each signed approval. /verify recomputes the chain and reads every anchor back. |
Fees (GET /api/fees, docs/FEES.md) |
About €0.095 per paid invoice (register + sponsored pay). The buyer pays only the amount; checks are free. Measured on testnet, same EUR peg as mainnet. |
| Outside users |
No visitor outside us has completed “become a payee” yet. |
| Protocol-Level Locks (PLL) |
NO-GO for a live demo (DevNet-only, no public IdP, wire format still moving). See tools/census/PLL_SPIKE.md. |
The chain enforces the payee’s signature, the cooling-off, the version and pay-once. It does not verify the name proof: a keyless verifier anyone can re-run does. Testnet names are self-asserted mock identities.
Use check_payee in your agent (one line each)
Read-only: these never sign and never pay. Concordium testnet; --network mainnet gives a read-only identity check (never a match).
npx payonce-check-payee <account> --name "Acme ApS" # exit 0 match, 1 no match, 2 close match, 3 not possible
npx payonce-check-payee x402 <seller url> --name "Seller" # read a seller's 402 for free, check its payTo
claude mcp add --transport http payonce https://payonce-api-n98a.onrender.com/mcp # Claude Code, hosted MCP
claude mcp add payonce -- npx -y payonce-mcp # Claude Code, local stdio bridge
Cursor (.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json):
{ "mcpServers": { "payonce": { "command": "npx", "args": ["-y", "payonce-mcp"] } } }
GitHub Action (fails the step unless the payee matches):
- uses: mohamedwael201193/payonce/packages/check-payee-action@main
with: { url: https://seller.example/api/paid, name: "Seller Name" }