DEV Community

Baris Sozen
Baris Sozen

Posted on

AI agents already settle millions a month - almost none of it atomically

Here is a number that should reframe how you think about the agent economy: in roughly one year, AI agents moved about $73M across 176 million machine-to-machine transactions on a single exchange, at an average of around $0.31 per transaction, across 100k+ registered agents.

Read that again. Agents are not "coming." They are already transacting, at scale, in production, right now. The interesting question is no longer whether autonomous software moves money. It is what those transactions are trusting - and what happens the first time that trust is misplaced.

Payments scaled. Settlement did not.

Almost all of that volume runs on payment rails. A payment rail does one job, and does it well: it moves a unit of value in one direction. Agent pays a service. Agent tips an API. Agent settles a micro-invoice. At thirty-one cents a pop, the failure modes are invisible - if a transaction goes wrong, you are out pocket change, and you move on.

The problem is that a payment and a trade are not the same operation.

A payment asks one question: did the money move?

A trade asks a harder one: did **both* sides happen - or neither?*

When your agent pays for something, there is one transfer and one direction of risk. When your agent trades - my asset for yours, your stablecoin for my token, one chain's value for another's - there are now two transfers that must both complete, or both not. The risk lives in the gap between them. One side sends; the other side is supposed to send back. On a payment rail, "supposed to" is doing an enormous amount of load-bearing work.

The hidden assumption

Every one of those 176 million transactions made an assumption that nobody had to state out loud: the counterparty will deliver. Between parties who already trust each other - a company and its own agents, two services under one operator - that assumption is fine. It holds because the trust was established off-chain, by humans, before the agent ever ran.

But the entire promise of the agent economy is the opposite of that. It is agents transacting with counterparties they have never met and have no reason to trust. Strangers. The moment you remove the pre-existing relationship, "the other side will deliver" stops being a safe default and becomes an open position. You are extending credit, or trusting a custodian to hold both sides, or hoping a bridge validator set behaves. At $0.31, nobody audits that. At scale, with real size, with adversarial counterparties, someone eventually doesn't pay - and the rail has no answer, because settling atomically was never its job.

What atomic settlement actually means

"Atomic" is not a marketing adjective here. It is a precise property: an operation either completes entirely or has no effect at all. There is no intermediate state where one party holds both legs.

The mechanism that delivers this for cross-party value exchange is the hash time-locked contract (HTLC). Stripped to its essentials:

  1. Two parties agree on a trade and a shared hash. One party knows the secret (the preimage); the other only knows the hash.
  2. Both parties lock their funds into contracts that say: "release to whoever reveals the preimage before the timeout; otherwise refund the original owner."
  3. When the secret is revealed to claim one leg, that same revelation makes the other leg claimable. Both legs clear from a single act.
  4. If either side stalls, the timeout fires and everyone is refunded. No fund is ever stranded.

No custodian holds the money. No bridge operator signs off. No API key sits in memory waiting to be leaked. The contract itself is the escrow, and the only thing being trusted is math: a hash preimage that either exists and clears both sides, or doesn't and refunds both. That is the entire point of the primitive. Your money never leaves your wallet until theirs arrives.

The honest tradeoffs

Anyone who tells you atomic settlement is free is selling something. The real costs:

  • Capital lockup. Your funds are locked for the duration of the timeout window. That is a genuine opportunity cost, and it is the price of removing the counterparty assumption.
  • Liveness requirement. If a counterparty vanishes mid-swap, you do not lose funds - but you do have to wait out the timeout to get your refund.
  • Timeout ordering. The party that reveals the secret has an information advantage; if the two timeouts are set in the wrong order, you can hand the claiming party a free option. Getting this right is the non-negotiable part of the engineering.
  • Hash compatibility. Cross-chain swaps need a hash function both chains support (SHA-256 vs Keccak), which constrains which pairs settle natively.

These are real, and they are the reason atomic settlement is not the right tool for every transaction. For a thirty-one-cent payment to a trusted service, a payment rail is correct - the overhead is not worth it. But for a two-sided trade with a counterparty you cannot vouch for, those tradeoffs are exactly what you want to pay for. They are the cost of not needing to trust the other side.

Why this matters now, not later

The temptation is to file this under "future problem." The $73M number is the argument against that. The volume is already here. The rails are already carrying it. The only reason the trust gap hasn't bitten hard yet is that the average transaction is too small to bother attacking and the counterparties are mostly still trusted by relationship rather than by protocol.

Both of those conditions are temporary. Transaction sizes are going up. The counterparty graph is getting wider and more anonymous. Somewhere on that curve, "almost none of it settled atomically" flips from a footnote to an incident. The teams that have a settlement answer before that point will not have to retrofit one after it.

If you are building agents that will eventually trade with someone their operator never met, the trust model of your settlement layer is not a detail to defer. It is a property you should be able to state out loud today.

Where to dig in

  • How we measure and define settlement volume: hashlock.markets/methodology
  • The MCP server and tools (six of them) so an agent can request quotes and settle atomically: github.com/Hashlock-Tech/hashlock-mcp
  • The protocol itself: hashlock.markets (sealed-bid RFQ + HTLC atomic settlement, live end-to-end on Ethereum mainnet; Sui contracts deployed and CLI-tested; Bitcoin signet-validated with mainnet pending)
  • The academic foundation, if you want the formal version: SSRN whitepaper

Question for the comments: the agent economy already settles millions a month. When do you think the first real trust-failure forces the switch from "assume the counterparty pays" to "settle so it doesn't matter" - and what's actually holding that switch back today?

Top comments (1)

Collapse
 
alexshev profile image
Alex Shev

This is the part that makes agent payments feel real: not whether agents can transact, but what guarantees surround the transaction. Once money moves, idempotency, rollback, authorization, and audit trails stop being architecture details and become the product.