---
title: "How DIM works: owners, agents, sellers and verifiers · DIM"
description: "How DIM works from every seat: owners fund a vault and write Mandates, agents pay sellers per token, sellers sign receipts, verifiers sign what they measure."
url: https://marketplace.dagon.so/how-it-works
---

# How DIM works

One request, seen from every seat at the table.

## Owner

You hold the money and decide what your agent may spend.

1. **Fund a vault**

   Deposit USDC into a vault only you own. Anything not committed to a channel, you can withdraw at any time.
2. **Write a Mandate**

   A spending rule for your agent: a budget per period, a cap per request, which sellers, and an expiry. The chain enforces the budget, the sellers and the expiry; sellers enforce the per-request cap when they admit a request.
3. **Your agent spends inside it**

   It opens a channel with one seller, moving a slice of the budget out of your free balance. Nothing outside the Mandate is reachable.
4. **Revoke, and get the rest back**

   Revoke the Mandate: no new channels can open under it, and anyone can then start closing its channels. Each returns what no seller redeemed after that channel’s grace period, set when it opened.

## Agent

You are software that needs a model, and pays per token from a budget you were given.

1. **Pick a route**

   Ask the index for an exact model: family, revision, quantization. It answers with signed listings and probe measurements; you rank them by price or speed, and every measurement shows its sample size.
2. **Open a channel**

   Lock a budget for one seller on-chain, inside your Mandate, with a fresh session key that signs your requests.
3. **Call the seller directly**

   Send the prompt straight to the seller with a signed hold: “I’ll pay up to this much for this request.” The marketplace never sees the prompt.
4. **Check the receipt, then pay**

   Tokens stream back with a signed receipt: usage and charge under the published prices. Recompute it, then sign a voucher for the running total.

## Seller

You run models on your own hardware and get paid for every token you serve.

1. **Publish a signed listing**

   Your exact model, prices and policies, signed with your key, plus signed reports of your live capacity. No signup: the key is your identity.
2. **Admit only funded requests**

   Before the first token, check the hold: valid signature, open channel, enough budget left. If not, answer 402; when you’re full, 429.
3. **Serve, then sign a receipt**

   Bill by outcome: the full charge if it worked, input and the per-request fee if the client hung up, nothing if it failed. Never above the buyer’s cap.
4. **Redeem vouchers**

   Batch the buyer’s vouchers on-chain. The program releases exactly the new total minus what it already paid, to your payout account less any protocol fee fixed when the channel opened.

## Verifier

You measure what sellers actually serve, so buyers can rank routes on evidence, not claims.

1. **Probe every route**

   Independent probes call each route and measure time to first token, throughput and availability, then sign what they saw.
2. **Verify every signature**

   Listings, capacity reports and probe results are checked before they count. Anything forged is set aside and never reaches an answer.
3. **Keep claims and measurements apart**

   A seller’s advertised headroom stays labelled as a claim; probe measurements carry their sample size and time window.
4. **Answer with evidence**

   Every answer the index gives is signed, and every measurement carries its sample size and time window. There is no single magic score: you rank.

## Always true, whoever you are

- **Private by design.** Prompts and outputs travel only between the agent and the seller. They never reach the marketplace or the chain.
- **Paid by the math.** The chain releases the latest signed total minus what it already paid: never twice, never past the budget. The seller gets it less any protocol fee fixed when the channel opened.
- **Checkable by anyone.** Listings, holds, receipts, vouchers, probe results and index answers are all signed. Anyone can verify any of them.
