Skip to content
agentfi.
Menu

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.

1 · How AgentFi works2 · At QDay

Illustrative diagrams, not live activity. Nothing shown here has run on a public network.

agentfi · invoice agent, liveLOCAL · Anvil — illustrative
invoice-agent · runningsigned ×1
07 · Was it paid?
mandate · set by the operatoractive
vendor
vendor-1
per invoice
≤ 1 tUSD8
per day
≤ 1 tUSD8
gas ceiling
≤ 0.0001 tQDAY
invoice · from vendor-1

QDAY-2026-11-22-0011 tUSD8

payTo 0x3C44…

  • vendor vendor-1
  • payee 0x3C44…
  • amount 1 ≤ 1 tUSD8
  • gas 0.0000546 ≤ 0.0001 estimate read on Aevum
ledger · written before sendingrecorded ✓

signed 0xb9c2…efe8 · nonce 0

agentnodebroadcast →

no answer ECONNRESET

The caller never learns whether the payment went out.

resend QDAY-2026-11-22-001
agentnode

PENDINGsame hash 0xb9c2…efe8

nothing new signed · signed ×1

finalityblock 10
included · block 10finalized
receiptlocal · Anvil
tx
0xb9c2…efe8
block
10
amount
1 tUSD8
Claude · via MCP

Was QDAY-2026-11-22-001 paid?

→ invoice_status(QDAY-2026-11-22-001)

paid & verifiedtx 0xb9c2…efe8 · block 10 · 1 tUSD8

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.

  1. 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.

  2. 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

    Toward (vision): Self-sustaining agents

  3. 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

    Toward (vision): Self-sustaining agents · An agent-to-agent economy · Economic identity

  4. 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

    Toward (vision): Economic identity

  5. 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

    Toward (vision): An agent-to-agent economy

  6. 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

    Toward (vision): Economic identity · An agent-to-agent economy

  7. 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

    Toward (vision): An agent-to-agent economy

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.

    Built toward by: Delegated spend control · Pay once

  • An agent-to-agent economy

    Agents paying each other for compute, data and services, directly and on-chain.

    Built toward by: Pay once · Headless · Trust between agents · Agent-to-agent negotiation

  • 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.

    Built toward by: Pay once · Proof on-chain · Trust between agents

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.

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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.

Read the invoice agent’s README on GitHub