Skip to content

How it works

Here is what happens to one paid call and its money, from request to payout or refund. The example assumes a local AI app, USDG already in escrow and approved spending limits. A free call skips the payment steps and earns the provider nothing.

flowchart TD
A[AI asks for a tool] --> B[Local app checks payment permission]
B --> C[Price reserved in your escrow]
C --> D[Provider answers; Assay checks]
D -->|No charge| E[Reservation released to your balance]
D -->|Charge allowed| F[Payment held in the contract]
F -->|Timely report accepted| G[Refund to your escrow]
F -->|Ready to collect| H[Provider wallet receives its share]

It reads what the tool does, its inputs and price. Assay finds an eligible provider. Money: your deposit is still in escrow; choosing a tool does not pay anyone.

The local assay-mcp app checks the payment request against your approved limits and signs it with your payment key. This key is separate from your wallet’s key. Money: still in your escrow balance, with no provider payment yet. Without permission, the paid call stops here.

Assay reserves the price and asks the provider

Section titled “Assay reserves the price and asks the provider”

Assay checks the signed permission, reserves the call amount and sends the tool request to the chosen provider’s API. Money: still in escrow, but the reserved amount is unavailable for other calls or withdrawal.

Assay records what came back and checks it against the tool’s rules. Your AI may receive the answer while checks are still running. Money: remains reserved. A result labelled Checking has no final charge yet.

If an active check finds a provider failure, the reservation is released. A call allowed to charge moves into a payment hold on chain. Money: either available again in your escrow balance, or held by the contract until the provider is paid. The receipt shows which checks ran.

Passed calls are recorded on chain in batches, normally at most about an hour after the call. The latest Assay app on your computer pays on a payment channel: it signs one running total for many calls, so recording them on chain costs much less per call. The money stays in your escrow until then. Until then a report gets a full refund if accepted; the exact deadline appears once the payment is recorded. The dispute hold then lasts at least one hour from the moment the payment is recorded on chain (for channel payments, rounded up to the next full hour). Use the receipt’s Refundable until time, not the time you received the answer. A report filed before then pauses collection and, if accepted, returns the full amount to your escrow. After that time you can still report a bad result for up to 7 days, but it no longer refunds the call; it counts toward the provider’s quality record.

Money: stays in the contract until refunded to your balance or collected. After the hold ends, the payment is paid to the provider in its next payout run. Collection sends the provider’s share to its payout wallet and Assay’s included fee to Assay. A completed payout cannot be pulled back through this refund flow. If a served call’s payment cannot be collected, it becomes Owed and paid calls pause until you settle it. If it stays uncollected for too long it is marked Written off: the provider is not paid, but you still owe it and paid calls stay paused until you settle it.

The receipt shows the listed price, what you paid, what was not charged, any amount still held or owed, and which checks ran. If the checks missed a bad answer, use Report a bad result on the receipt. A refund returns to your Assay balance; moving it to your wallet is a separate withdrawal.