Concordium mainnet · x402

x402 facilitator for Concordium

An independent facilitator for x402's exact scheme on Concordium, the one @x402/concordium clients use. The buyer signs a transfer of CCD or a protocol-level token (PLT, e.g. EURR) to the seller and names this facilitator as fee payer (sponsor). The facilitator checks it, co-signs as sponsor, pays the fee and submits it. The buyer pays no fees, and the facilitator never holds anyone's funds.

Status
Live
Network
Concordium mainnet
Payments sponsored
17
Today
3 / 25 a day

Latest payments

Read from the chain: every transfer this facilitator's account sponsored. The buyer paid no fee; the fee column is what the sponsor paid (Concordium mainnet CCD).

UTCAmountToFeeTransaction
2026-11-29 12:151 CCD45R4vB9J…xnFP7J6.257676a1d30310…7fe6bd
2026-11-29 11:241 CCD4qqrSf3C…keoVoq6.26893173bab29f…392062
2026-11-29 08:5820 CCD45R4vB9J…xnFP7J6.271165ff8b3ca2…cb371c
2026-11-28 20:2820 CCD45R4vB9J…xnFP7J6.057273b0909b0f…c25770
2026-11-28 19:4120 CCD45R4vB9J…xnFP7J6.03244398db8fa2…3f301b
2026-11-16 12:58–10.885068b81efdbd…b567af
2026-11-16 12:540.001 CCD45R4vB9J…xnFP7J4.7828857f27f1e1…879e85
2026-11-16 12:480.001 CCD45R4vB9J…xnFP7J4.7828853fc860fd…2a00f7
2026-11-16 12:46–14.59014718e75886…12b403
2026-11-16 12:20–13.9999768702f186…afc939

How a payment works

  1. The seller's API answers 402 with a Concordium option that names this facilitator in extra.feePayer.
  2. The buyer signs a sponsored transfer (account transaction v1) of exactly that amount to the seller and sends it in the PAYMENT-SIGNATURE header.
  3. The seller posts it to /verify, then /settle: this facilitator checks amount, payee, signature, nonce, expiry and balance, co-signs as sponsor, submits it and waits until it is final.

Who you pay: checked with Concordium

Every Concordium account is opened from an identity a regulated identity provider verified. Before sponsoring a payment this facilitator reads the seller's own credential (which provider, valid until when) and, when the seller's endpoint shows a Concordium badge in its Agent Card, checks its agent in Concordium's Agent Registry: active, its anchored card unchanged, this endpoint listed, and the payTo its registered agent wallet. The answer rides along in every /verify and /settle response as extensions["concordium-identity"]: verified-agent, identity-backed, expired or not-read.

A zero-knowledge proof about the person behind the payTo. A seller's owner can prove, from their own Concordium wallet, facts such as 18 or older or lives in the EU without revealing them (make one), tied to the payTo and the site, and serve it at /.well-known/concordium-proof.json. This facilitator verifies it against the chain with its own node, checks that it came from the payTo account's own credential, and reports the proven facts as proof; nothing else about the person is known to it.

This instance reports it; set IDENTITY=agent to sponsor only verified agents, or IDENTITY=proof to sponsor only sellers with a verified proof. Check a seller before going live: GET /identity?url=<paid endpoint>&payTo=<account>.

Who pays: the buyer's proof

It works the other way round too. A seller that may only sell to adults, or only to people living in the EU, adds "buyerProof": ["adult"] to its 402's extra. The paying agent's owner proves it once from their own Concordium wallet (make one), tied to the account the agent pays from, and the agent sends that file with its payments as extensions["concordium-buyer-proof"]. Before sponsoring, this facilitator verifies it against the chain, checks that it came from the paying account's own credential and shows what the seller asked; otherwise it refuses (buyer_proof_required or buyer_proof_invalid) and nothing is signed. The seller learns that the fact holds, and nothing else about the buyer.

What did my agent pay?

Every payment this facilitator sponsors is a transfer the agent's own account signed, so it is on chain for good. GET /statement?account=<the account your agent pays from> lists them: when, to whom, how much (with totals per asset), and for each payee what Concordium says about it now (an identity-backed account, its identity provider, an expired credential). Read from the chain, it needs no log of ours and holds after restarts.

For sellers: the 402 option

Add this to accepts[] (here 0.01 CCD; amounts are in the smallest unit, 6 decimals for CCD):

{
  "scheme": "exact",
  "network": "ccd:9dd9ca4d19e9393877d2c44b70f89acb",
  "amount": "10000",
  "asset": "CCD",
  "payTo": "<your Concordium account>",
  "maxTimeoutSeconds": 120,
  "extra": {
    "feePayer": "4HxSuKYFJw4wZaDFt3buyTTX7kogz3SxWTnXwvBDAHbq9poqQJ"
  }
}

For a PLT, set its token id (the decimals are read from the chain):

{
  "asset": "EURR",
  "amount": "10000",
  "extra": {
    "feePayer": "4HxSuKYFJw4wZaDFt3buyTTX7kogz3SxWTnXwvBDAHbq9poqQJ"
  }
}

Then use https://checkout.fizzl.eu as your facilitator URL.

Who pays the fees. Every sponsored transfer costs the sponsor a fee in CCD. 3 sponsored payments a day are free for any seller (listed sellers have no limit). After that a seller pays its fees in advance: send CCD from your payTo account to the sponsor 4HxSuKYFJw4wZaDFt3buyTTX7kogz3SxWTnXwvBDAHbq9poqQJ, and each fee is taken from it. Both are on chain, so GET /fees?payTo= reads your balance from the chain, and anyone can check it.

Routes

GET /supportedthe scheme, network and sponsor account
POST /verify{ paymentPayload, paymentRequirements } → { isValid, payer } or invalidReason
POST /settlesame body → { success, transaction, network, payer } once final on chain
GET /identity?url=&payTo=: what Concordium says about a seller (credential, registered agent, zero-knowledge proof)
GET /fees?payTo=: free payments left today and the fee balance, read from the chain
GET /payto?payTo=: per token on this network, whether your payTo can be paid in it (allow and deny lists)
GET /paymentsthe sponsored payments, read from the chain
POST /receipt{ receipt, tx }: did this transaction pay exactly what the receipt says (seller, amount, the resource bought)? The receipt is what /prepare gave; the chain shows only its hash in the memo
GET /statement?account=: what one agent paid through this facilitator, to whom, and who those payees are
GET /healthlive state as JSON

Spec and code

The scheme: scheme_exact_concordium.md in the x402 repository. On top of its checks this facilitator also caps the energy at what the transfer needs, checks a PLT's pause and allow/deny lists before sponsoring, and has a seller allow-list and a daily limit (SPEC.md). Code (MIT), tests and a buyer-side helper: github.com/Fizzl13/x402-examples. Built on Concordium's sponsored transactions (protocol 10) with @concordium/web-sdk.