Walkthrough · developer alpha
How AgentFi works — and the QDay invoice proof
“AgentFi is the economic layer for non-human intelligence.”
“Not freedom without limits. Freedom within a structure that makes freedom safe.”
— VISION.md, April 2026
Two chapters. First, the system: who sets the rules, how a payment passes through AgentFi once, and where the proof lives. Then one invoice, one payment and one receipt from the QDay invoice agent, as it ran in a local rehearsal.
- vendor
- vendor-1 ✓
- per invoice
- ≤ 1 tUSD8
- per day
- ≤ 1 tUSD8
- gas ceiling
- ≤ 0.0001 tQDAY
signed 0xb9c2…efe8 · nonce 0
no answer ECONNRESET
The caller never learns whether the payment went out.
PENDINGsame hash 0xb9c2…efe8
nothing new signed · signed ×1
- tx
- 0xb9c2…efe8
- block
- 10
- amount
- 1 tUSD8
Was QDAY-2026-11-22-001 paid?
→ invoice_status(QDAY-2026-11-22-001)
other answerspendingunknown invoicecannot verify
Chapter 1
How AgentFi works
Five actors, drawn the same way throughout: the operator who sets the rules, the agent that pays, AgentFi as the slot every payment passes through, the chain that records it, and the vendor’s paid API.
00 · The vision
“AgentFi is the economic layer for non-human intelligence.”
“Not freedom without limits. Freedom within a structure that makes freedom safe.”
— VISION.md, April 2026, the founding document · read it
The six pillars below are what is built now, toward the three horizons of that document. The horizons are the destination, not delivered features.
01 / 06
Delegated spend control
The operator draws a boundary around the agent in advance: a cap per payment, a daily total, the allowed payee and an expiry. A payment outside it is refused before anything is signed.
max 10 tUSD8 / invoice · 50 / day
02 / 06
Pay once
If the answer to a payment is lost on the way back, resending the request does not pay twice. It is answered from the record of the first payment and the chain, and nothing new is signed.
same tx hash · signed once
03 / 06
Proof on-chain
The transfer lands in a block and stays pending until the chain’s finality rule is met. The receipt carries the transaction hash, the block and the amount, so it can be checked in an explorer.
confirmed only when finalized
04 / 06
Headless
The same core is reached through HTTP/OpenAPI, an MCP server or thin SDK adapters. No screen is needed to pay; an interface, when there is one, only reads and verifies.
API · MCP · adapters
05 / 06
Trust between agents
A job escrow (ERC-8183) and a reputation anchored in settled payments (ERC-8004) are written in the code. They have not been deployed on a public network.
in code · not on a public network yet
In code · not on a public network yet
06 / 06 · roadmap
Agent-to-agent negotiation
Agents agreeing on terms with each other before a job is a direction, not a feature. Nothing of it is built.
roadmap
Roadmap · not built
Where it goes · vision, not delivered
Three horizons, from VISION.md
Each line joins a pillar that exists in code to the horizon it builds toward. None of the horizons is a feature of the alpha.
Self-sustaining agents
“from tool to participant”
An agent that earns, holds and spends its own money, and pays its own costs within the limits its operator set.
An agent-to-agent economy
Agents paying each other for compute, data and services, directly and on-chain.
Economic identity
“a verifiable on-chain record of behavior over time”
A history of kept limits and settled payments that other agents can inspect before they transact.
Chapter 2 · QDay Aevum Builder Challenge
At QDay: one invoice, one payment, one receipt
The invoice agent built for the challenge, step by step, with the values from its local rehearsal on Anvil. Every step marked LOCAL ran on a chain on one machine; the gas estimate is the one value read from Aevum.
01 / 07
Mandate
The operator authorizes the agent in advance: one vendor, at its registered address, at most 1 tUSD8 per invoice and per day, and a gas ceiling per transaction.
≤ 1 tUSD8 / invoice · / day · gas ≤ 0.0001 tQDAY
LOCAL · Anvil
02 / 07
Invoice
Invoice QDAY-…-001 arrives for 1 tUSD8. The vendor, the payee address and the limits are checked against the mandate.
QDAY-…-001 · 1 tUSD8
LOCAL · Anvil
03 / 07
Sign and record
The agent signs the transfer and writes the signed transaction to its ledger before sending it (write-ahead), so its hash is known before anything leaves. The gas estimate fits the ceiling.
gas max 0.0000546 tQDAY ≤ ceiling 0.0001
LOCAL · Anvilgas: read on Aevum, 20 Nov
04 / 07
Broadcast, then the agent is killed
The transaction is broadcast and the agent process is killed before it can answer. The caller gets no response.
caller: no answer
LOCAL · Anvil
05 / 07
Resend the same invoice
The same invoice is sent again after a restart. The ledger already holds it, so the answer is PENDING with the same hash. It is not paid again.
PENDING · same hash 0xb9c2…efe8
LOCAL · Anvil
06 / 07
Finality
On Aevum, “final” means the batch was verified on L1, about an hour after the transaction. On the local chain the block is mined at once.
local: mined at once · Aevum: L1-verified, ≈ 1 h
LOCAL · Anvil
07 / 07
Receipt, and “was it paid?”
One receipt the operator can check on-chain, for exactly one transfer. Asked “was it paid?”, the agent answers with an explicit state, never a guess. Four of them are shown here.
one receipt · exactly one transfer
LOCAL · Anvil
- paid & verified
- pending
- unknown invoice
- can’t verify now — check the original tx, don’t pay again
Runs today: locally (Anvil) — open source, packages/invoice-agent.
Public receipt on Aevum Testnet: not yet run.