How Aevum Pay works
Docs
Everything a user — or a judge — needs to try the demo end to end.
Try it in 2 minutes
- Get test tokens: claim tQDAY + tUSD8 from the QDay faucet (Discord
/faucetor faucet.qday.info). - Connect your wallet (header, top right) and switch to Aevum testnet (chain 44005).
- Create an invoice — amount, memo, optional due date — and copy the payment link.
- Open the link in another wallet (or incognito) and pay — gasless with one signature, or standard approve + pay.
- Open the receipt: it reads the chain and links to the explorer. See every payment on Activity.
Paying as an AI agent
On Agents, register an agent wallet with a spending limit and an expiry. Then approve AevumPay from your (owner) wallet for up to that limit — the agent can never spend more, even if its key leaks. The agent pays with payAsAgent using its own key, or gaslessly: you (the owner) sign an EIP-3009 authorization and the relayer submits payAsAgentWithAuthorization. Revoke the agent any time and every later payment reverts.
The contract
One contract, AevumPay.sol — no escrow, no owner backdoor over anyone's funds. Every payment moves atomically from payer to seller. Amounts must match the invoice exactly; an invoice pays once; EIP-3009 signatures are bound to one invoice via authorizationNonce(invoiceId).
- Network
- QDay Aevum Testnet · chain 44005
- AevumPay
- 0x711DAF19FE981C46Ca05CaA8cDaea43136e17C13
- Token
- tUSD8 · 0x456569838f1d43009A91ebA4263147Afd7233483 · 6 decimals
- Source
- Verified on the Aevum explorer (solc 0.8.24, optimizer 200 runs, Shanghai)
The relayer (gasless mode)
POST /api/relay accepts a signed EIP-3009 authorization and submits it. Its rails: only this AevumPay contract, only payWithAuthorization / payAsAgentWithAuthorization; the amount is read from the invoice on-chain (never trusted from the request); paid, cancelled or expired invoices are refused; every call is simulated first; per-IP and per-payer rate limits plus a daily cap apply. The relayer never holds funds and never sees a private key — it only submits signatures the payer already made.
How it compares
Aevum Pay covers the whole payment flow — not one step of it. The table below compares it neutrally with the two narrower shapes a payment app can take.
| Feature | Aevum Pay | Escrow-only | Payment-gate-only |
|---|---|---|---|
| Invoices (amount, memo, due date) | Yes | — | — |
| Payment link + QR code | Yes | — | Link only |
| Exact-amount + single-payment enforcement | Yes | — | Yes |
| On-chain receipt per payment | Yes | Partial | Yes |
| Dashboard + invoice management + CSV | Yes | — | — |
| AI agent registry (ERC-8004-style) | Yes | Partial | — |
| Agent spend limit + expiry + instant revoke | Yes | — | — |
| Gasless EIP-3009 (human + agent) | Yes | — | Yes |
| Live activity feed from contract events | Yes | — | — |
| No escrow (funds never held) | Yes | No (holds funds) | Yes |
On-chain proof for every claim above lives in ONCHAIN-EVIDENCE.md in the repo: the verified testnet deployment, the 13/13 local E2E checks with tx hashes and gas numbers, and the relayer rails.
FAQ
- Is tUSD8 real money?
- No. This is a testnet demo token with no real value.
- Can an invoice be paid twice?
- No — the contract reverts with AlreadyPaid, and the app checks the status before you sign anything.
- What if I pay the wrong amount?
- You can't: the contract reverts with AmountMismatch unless the amount equals the invoice exactly.
- Can a revoked agent still pay?
- No. Revocation takes effect immediately for every later payment, on-chain.
- Where does the money sit between payment and receipt?
- Nowhere — each payment is one atomic transfer from payer to seller. The contract never holds balances.