Skip to content
x402 v2 · QoreChain testnet · rollup turnstile-1

Pay-per-call APIs for AI agents, settled by a post-quantum rollup.

A seller puts a price on any route. An agent pays per call with an ML-DSA-44 signature from one deposit, gets an answer only it can open, and every payment settles on QoreChain in batches signed with ML-DSA-87.

Pay
1/3
402 · quote signed
Paid · ML-DSA-44 signed
Inbox post #20 · 69D7211E…
Settle
@qorechain/rdkrollup turnstile-1 · qledger-v1@qorechain/sdkhybrid secp256k1 + ML-DSA-87 txs@qorechain/qoresealML-KEM-1024 sealed answers@qorechain/qoresignML-DSA-87 signed quotesx402 v2PAYMENT-REQUIRED · PAYMENT-SIGNATURE@x402/corescheme exact · cosmos:qorechain-dianaQoreChainPQC + KEM key registryQoreChainML-DSA-87 anchored batchesWatchtowerindependent replay, own keyNeonPostgres index of the chainRailwayfacilitator, operator, watchtowerVercelthis site
@qorechain/rdkrollup turnstile-1 · qledger-v1@qorechain/sdkhybrid secp256k1 + ML-DSA-87 txs@qorechain/qoresealML-KEM-1024 sealed answers@qorechain/qoresignML-DSA-87 signed quotesx402 v2PAYMENT-REQUIRED · PAYMENT-SIGNATURE@x402/corescheme exact · cosmos:qorechain-dianaQoreChainPQC + KEM key registryQoreChainML-DSA-87 anchored batchesWatchtowerindependent replay, own keyNeonPostgres index of the chainRailwayfacilitator, operator, watchtowerVercelthis site
@qorechain/rdkrollup turnstile-1 · qledger-v1@qorechain/sdkhybrid secp256k1 + ML-DSA-87 txs@qorechain/qoresealML-KEM-1024 sealed answers@qorechain/qoresignML-DSA-87 signed quotesx402 v2PAYMENT-REQUIRED · PAYMENT-SIGNATURE@x402/corescheme exact · cosmos:qorechain-dianaQoreChainPQC + KEM key registryQoreChainML-DSA-87 anchored batchesWatchtowerindependent replay, own keyNeonPostgres index of the chainRailwayfacilitator, operator, watchtowerVercelthis site
@qorechain/rdkrollup turnstile-1 · qledger-v1@qorechain/sdkhybrid secp256k1 + ML-DSA-87 txs@qorechain/qoresealML-KEM-1024 sealed answers@qorechain/qoresignML-DSA-87 signed quotesx402 v2PAYMENT-REQUIRED · PAYMENT-SIGNATURE@x402/corescheme exact · cosmos:qorechain-dianaQoreChainPQC + KEM key registryQoreChainML-DSA-87 anchored batchesWatchtowerindependent replay, own keyNeonPostgres index of the chainRailwayfacilitator, operator, watchtowerVercelthis site

How it works

From one request to a settled payment.

What happens when an agent calls a paid API, where the payment goes, and how anyone can check it. Keep scrolling; the diagram follows.

1The API asks for payment

The agent calls a route with a price. The seller answers HTTP 402 with a quote signed with ML-DSA-87: price, payee, the buyer's next nonce, expiry.

2The agent signs a payment

The agent checks the quote against the seller's key on QoreChain, then signs a transfer inside the rollup with ML-DSA-44. No gas: the facilitator posts it.

3The facilitator checks, then posts

Signature, nonce, balance, expiry and replay are checked against the replayed rollup state. The payment lands in the turnstile-1 inbox and the seller seals the answer with ML-KEM-1024 to the buyer's registered key.

4The batch settles on QoreChain

The operator batches up to 64 payments, signs the state root with ML-DSA-87 and anchors it. After the 1-hour challenge window sellers withdraw with a Merkle proof, and anyone can verify the receipt.

Try it yourself

Check it in 60 seconds.

No wallet, no sign-up. Three clicks show you a real payment, its batch and its proof.

  1. Step 1

    Pay for one call

    Open the playground and press Pay on the rollup rating API.

    You should see the 402 quote, the signed payment and its inbox transaction on QoreChain, with the diagram lighting up step by step.

    Open the playground
  2. Step 2

    Follow the payment

    Click Follow this payment at the end.

    You should see the batch it landed in, its ML-DSA-87 anchor and the minutes left in the challenge window.

    See the ledger
  3. Step 3

    Break a receipt

    Open a settlement receipt and switch on Tamper.

    You should see NOT VALID, and which of the 6 checks failed.

    Verify a receipt

Live from QoreChain

The network right now.

Read from the chain and our index. Every number links to its source on the live page.

0

Paid calls

69 single payments + 6072 session calls

from chain + index · block 11,293,864

0

Batches anchored

of 218 · 218 final

from chain + index · block 11,293,864

0

Withdrawals executed

125 requested

from chain + index · block 11,293,864

0

QOR settled

paid by agents, 6 decimals

from chain + index · block 11,293,864

Related work

Who else does pay-per-call, and how we differ.

ProjectWhat it doesHow Turnstile differs
PQ-402x402 with post-quantum credentials; settles each call on chainWe batch: one inbox post per payment (or per session), not one contract call per payment.
Tollgatepayment channels with escrow per buyer-seller pairOne deposit pays every seller; no per-pair escrow; withdrawals with receipts.
LAZARUSa rollup with a 402 demox402 v2 wire format, a facilitator API, signed quotes and sealed answers.
MCPaypaid MCP tools on other chainsML-DSA payments, ML-KEM sealed answers, QoreChain settlement.

We learned from these projects' public pages; no code was copied.

Questions

What builders and judges ask first.

Every answer links to a test or a transaction on the proof page.

Have an API an agent would pay for?

Add one middleware line with a price. Agents pay per call; you withdraw to QoreChain.

  • No wallet to try it
  • Every payment on chain
  • Open source, Apache-2.0