Skip to content

Settlement and the hold window

Escrow is customer money held by the payment contract for calls. A call can return data before its checks finish, and it can pass those checks before the provider is paid. Keep the service verdict, payment hold and collection status separate when reading a receipt.

The local paid-call path uses USDG on Robinhood Chain. Your wallet approves a payment key with caps and an expiry. That key can sign payments; it cannot withdraw the customer’s balance.

The latest assay-mcp and SDK pay on a payment channel: the key signs one running total per channel instead of one payment per call, and Assay settles many calls on chain in one transaction, so the on-chain cost per call is much lower. A per-call payment is the automatic fallback when a channel cannot be used, and older clients still pay per call. Both kinds move through the same stages below, with the same limits and refunds.

Stage Where the money stands What comes next
Funded escrow Customer balance in the contract. Available for authorized calls, subject to limits.
Call reservation Assay reserves the call amount before contacting the provider. Result checks decide whether to release it or allow payment.
Served and settled The call is allowed to charge. The signed payment may still await redemption. Assay submits it on chain.
On-chain payment hold Redemption removes the amount from customer balance and stores a held payment. The provider has not received it. Collect after the hold, or refund while permitted.
Collected Contract transfers the provider share to the payout wallet and the fee to the treasury. That held payment can no longer be refunded.
Refunded A held payment returns in full to customer escrow, or a pre-redemption reservation is released. The provider receives no payment for it.

The take rate is frozen when a payment is redeemed. Collection uses that rate even if the configured rate changes later. A held-payment refund restores the customer balance, but does not restore spending-window capacity already consumed on chain.

The default hold is at least one hour from on-chain redemption, not from the time your agent received the answer. A per-call payment stores its own collectableAt (redemption plus the hold); a later configuration change does not move that deadline.

Assay submits passed payments in batches: a per-call payment normally waits at most 30 minutes before it is redeemed. A channel lane settles about 30 minutes after its first call not yet recorded on chain, sooner when that unsettled amount reaches $5 or a signature nears its deadline, so a channel call normally waits at most about an hour. Until redemption the receipt promises a full refund for an accepted report without a deadline; the exact deadline appears once the payment is recorded on chain.

A channel settlement puts its charge in a bucket that matures at the next full hour after redemption plus the hold, so with the default hold a channel’s dispute hold lasts between one and two hours. The hold is a contract setting (60–86,400 seconds): Assay offers new channels only while it is at most 3,600 seconds, but if it is raised later, existing channels keep settling into buckets that mature that much later, so their hold is longer. A report filed before a channel settles is charged into the hold and kept there until the report is decided; it is not waived at settlement.

Assay does not collect a payment held for an open or upheld qualifying report. If the report is upheld while a refund is possible, the redeemer returns the full held amount to customer escrow. A blocked provider’s still-held payments are also refunded rather than collected.

Timing Rule
Default hold 3,600 seconds.
Configurable hold 60–86,400 seconds for new redemptions.
Guaranteed filing deadline Before collectableAt minus 60 seconds, subject to the receipt’s eligibility state. A served call awaiting redemption can qualify too.
Channel bucket maturity Redemption plus the hold, rounded up to the next full hour.
Ordinary collection The designated redeemer can collect from collectableAt, in the provider’s next payout run.
Contract backstop From collectableAt plus 7 days, anyone can collect to the recorded provider; pause and block checks still apply.
Contract refund cutoff At collectableAt plus 7 days, refundHeld closes permanently.

Use the receipt’s reporting deadline rather than calculating your own from the default. A report filed later may affect provider quality without guaranteeing a refund. The application holds collection for a report; the contract’s public collection backstop does not read the application’s dispute state.

Collection runs on a schedule, not per call. Payout runs follow the provider’s choice: every 6 hours by default (00:00, 06:00, 12:00 and 18:00 UTC), or every hour when at least $25 is ready (otherwise in the 6-hour run). An active channel’s matured bucket is collected before each new settlement of that channel, whatever the schedule. One collect transaction pays many calls: the per-call batch sends one transfer per provider plus one fee transfer, so an explorer shows one transfer per payout. The provider’s Money page shows Next payout about HH:MM UTC. For channel payments, a provider whose payout transfer cannot be delivered (for example a frozen token account) is still collected; the contract sets the amount aside and pays it with claimUnpaid once the transfer can succeed.

A signature can become uncollectable even after a call was served. The outcome depends on the cause:

State Customer funds Provider payment and future calls
Still retrying or transaction outcome unknown Reservation stays open. Assay checks the chain before deciding whether another send is needed.
Provider forfeited payment Reservation released; customer is not charged. Nobody is credited.
Owed call (DEBT_OUTSTANDING) Amount stays reserved after the original signing window lapses for a reason not attributed to the provider. Provider is unpaid; new paid calls stop until replacement payment succeeds. Free calls continue.
Written off after 30 days from lapse Reservation released. Provider remains unpaid. The call is still owed and still blocks paid calls.
Debt voided by a later refund or void decision Reservation released. No amount is owed for that voided debt.

To settle an owed call, use the Assay app’s funding flow to sign a replacement payment for the same served call. It keeps the provider, amount and request identity. It does not run the provider again. A written-off debt needs a new reservation because the original one was released. Assay does not advance its own money to pay these providers. An owed call that was paid on a payment channel (voucherFormat: "CHANNEL" in GET /escrow/debts) is first renewed by the agent’s own channel key, with channelVoucher on POST /escrow/debts/{intentId}/voucher. Until no stored channel voucher covering the call can settle on chain any more, the per-call replacement routes answer CHANNEL_NOT_OFFERED and the app cannot sign it. That moment is the item’s settleInPortalFrom (the latest covering voucher’s expiresAt plus 7,320 seconds); settleInPortal turns true once it has passed. From then on the debt can also be settled per call, like any other owed call, in the app or through voucher-intent then voucher: same amount and provider, a fresh sequence. This is the path for an agent that lost its channel record. Once accepted, the call moves to the per-call payment for good (voucherFormat becomes PER_CALL). If the chain’s clock has not yet passed the deadline, or the channel’s on-chain total does not yet match, the accept step answers the retryable PAYMENT_DEBT_NOT_YET_REPLACEABLE; try again in a few minutes.

For this contract payment path, collection transfers the provider’s share directly to the payout wallet. A backend SETTLED call is a service decision; it is not proof that this transfer happened. Provider credit is booked after the chain reports collection.

A submitted transaction is also different from a successful receipt. Deposits become spendable only after the backend’s finality check, using the configured confirmation depth or finalized block head. Redemption and collection have their own transaction checks. There is no single fixed wall-clock time that makes every stage final.

Optional: withdrawal and permission delays

Customer withdrawals use a request followed by a three-hour wait and a claim. A pending withdrawal excludes paid routing on that chain. Lowering caps or revoking a payment key also preserves earlier on-chain authority for a three-hour tightening delay, bounded by the key’s expiry. The backend refuses new payments from a revoked key even during that contract delay. See Spending limits for the distinction between local signing limits and contract caps.