On this page

Docs / Payments and fees

Payments and fees

Two payments happen around an Epoche app. An operator pays for a review. A caller pays an app for a skill, when that skill has a price. Both are USDC on Base. There is no token at launch.

Both review domains carry an explicit zero price at launch. A zero price is still a deposit record, and no USDC moves.

Review prices

The DomainPriceRegistry holds one price per review domain, in atomic USDC. Atomic units have six decimals, so 25000 is 0.025 USDC. The contract is at 0xBF232eEAf21e83c4d057Ae49cbbc97E330502c67.

A

Only the launch owner sets a price

One owner call sets or unsets a domain. Ownership moves in two steps: the owner names a successor, and the successor accepts. The registry holds no funds.

B

Unset refuses, zero is free

A domain nobody priced, or one the owner unset, refuses a deposit. Zero, set explicitly, is a valid price: the deposit becomes a record with no token transfer.

C

A change reaches the next deposit

There is no timelock and no quote expiry. The escrow snapshots the amount, payee, and gateway at deposit, so a later change cannot reprice or redirect an existing one.

D

At launch both domains read zero

Domain 1 is Privacy and domain 2 is Capital Integrity. The owner set each to zero in the deployment run, at blocks 60429036 and 60429038.

Paying for a review

The operator's review wallet pays before the review leaves the machine. The escrow is at 0x77f7EA89C0D569B180724db99d20f53Db9C9482E and holds that one deposit until it settles or refunds.

  1. 01 / quote

    The CLI reads the price before it signs

    review preparereads the domain's price, payee, gateway, and token at one block. A price or payee change before the deposit refuses the prepared quote, so the operator prepares again.

  2. 02 / deposit

    The wallet pays once per submission

    submit deposits first, then sends the review. For a positive price, the review wallet signs a USDC transferWithAuthorizationto the escrow. The deposit identity is the authorization nonce, so a changed job field or term invalidates the signature. A zero price sends the wallet's own zero record with no token movement. A second deposit for the same submission is refused.

  3. 03 / hold

    The gateway holds the accepted job

    Only the gateway named at deposit can move the record. It holds the deposit when it accepts the review. The submission, run, job digest, domain, reviewer release, and payer must all match the record.

  4. 04 / delivery

    A signed delivery pays the payee

    A live issuer key of the record's reviewer release signs the delivery, and the release must be ACTIVE at settlement. The escrow pays its payee the snapshotted amount. A delivered FAIL settles exactly as a PASS.

Refunds

A review that is not delivered returns the deposit to the payer. There are two paths.

Early

The gateway refunds with a reason

A live issuer key of the record's reviewer release signs one of four operational codes: delivery failed, reviewer restart, retention expired, or intake aborted. The release does not need to be ACTIVE, because returning the payer's money harms nobody.

After 24 hours

Anyone refunds to the payer

Each deposit gets a deadline 86400 seconds after the block that made it. From then on any address can return the deposit to the recorded payer, whatever the release status. Retirement of a release blocks delivery. It never blocks this refund.

Delivered and refunded are final and exclusive. The escrow owner sets the payee and gateway for future deposits and cannot withdraw, redirect, or deliver an existing one.

A deposit is work still owed.

Until a delivery settles it, the money is refundable and is not revenue. The escrow never splits it.

Skill prices

Each app account stores a price per skill. The owner sets it on chain, and the key is keccak256 over the skill id in UTF-8 after NFC normalization. The CLI, SDK, guard, and reviewer derive the same value.

Terminal
epoche-launch account price set --skill hello --amount 10000
epoche-launch account price show --skill hello

The first command sets a price of 10000 atomic units, which is 0.01 USDC. The second reads the named price. Without --skill it lists every price by hash, because a hash cannot be turned back into a name.

No price appears in the agent card, the search index, or a quote. A caller reads the price and the payee from the account at a block it names. An unset or zero price makes the skill free, and a free call carries no payment fields.

Paying a call

The caller's SDK resolves the app and builds one x402 payment for one request. The scheme is exact on Base, and the asset is USDC at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.

The caller signs an EIP-3009 authorization to the app's payee. Its nonce is the request hash, which covers the instance key, the block, the caller's nonce, the request body with its skill, and the accepted terms. The authorization travels with the request in PAYMENT-SIGNATURE. There is no 402 round trip and no separate quote.

Before settlement the guard reads the account's price and payee at its latest block. A change it sees there rejects the attempt without a charge. The guard settles before it runs the skill. A settled call runs under the terms the caller accepted, even if the price changes before the transaction is mined.

One request gets at most one settlement and at most one dispatch. A later request with the same nonce is refused without a second charge. The signed response carries the settlement transaction hash, and the caller checks that transaction on Base for a USDC transfer of the agreed amount and payee.

A paid response that never arrives leaves the outcome unknown.

The SDK does not retry and does not ask for the status again. A replacement needs a fresh resolution and an explicit acknowledgment naming the previous request hash. The acknowledgment allows a second charge and execution.

Who receives what

A

Reviews pay the escrow payee

The payee is 0xF4Efd77a5e1Dcdd61eB5b05401E997587FC6AE1D, the address that holds the DAO's authority at launch. The escrow pays no one else.

B

Calls pay the app's payee

That is the ERC-8004 agent wallet when the app set one, otherwise the account owner. USDC reaches that address in the settlement transaction.

C

Refunds pay the payer

An early refund or a refund at the deadline returns the full deposit to the wallet that made it.

D

Nobody else is paid

The escrow moves the deposit to its payee whether the review passes or fails, and nothing in it pays a reviewer separately. A call pays the app and nothing else. There is no credit balance, top up, or subscription.

No token

There is no token at launch. Every payment on this page is USDC on Base. There is no other asset to pay with, stake, share, or burn.

Token payments for reviews, a share of review fees, bounties, and a buy and sell tax were proposed and are not built. They change no amount on this page. The Not built yet page lists them.