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.
Built on
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.
Step 1 of 4: The API asks for payment
Waiting for a request…
1/4 request GET /v1/rating/turnstile-1 → 402 · quote signed ML-DSA-87
1/4 · The API asks for payment
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.
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 playgroundStep 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 ledgerStep 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
Explore
Everything behind that payment.
The live system
Every service lit by its real health, the payments, batches and withdrawals as they happen.
OpenWhy you can trust it
Post-quantum signatures and encryption end to end, an independent watchtower, and the attacks we checked for.
OpenEvery proof
Each feature next to its code and its transaction on QoreChain, checked against the chain just now.
OpenLive 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.
| Project | What it does | How Turnstile differs |
|---|---|---|
| PQ-402 | x402 with post-quantum credentials; settles each call on chain | We batch: one inbox post per payment (or per session), not one contract call per payment. |
| Tollgate | payment channels with escrow per buyer-seller pair | One deposit pays every seller; no per-pair escrow; withdrawals with receipts. |
| LAZARUS | a rollup with a 402 demo | x402 v2 wire format, a facilitator API, signed quotes and sealed answers. |
| MCPay | paid MCP tools on other chains | ML-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