Quickstart (sellers)
Any HTTPS API can be sold per call in USDG. Paste the URL, set a price, write what one call delivers, post a deposit. You are paid in the same transaction as each call.
1. Describe the service
Open Sell in the app and connect the wallet that will own the service.
| Field | What it is |
|---|---|
| Service id | The path of your covered URL: /x/<id>. 3 to 40 characters, a-z, 0-9 and dashes. |
| Upstream URL | Your HTTPS endpoint. Buyers never see it. The path and query after /x/<id> are appended to it. |
| Secret header | Optional header the proxy adds to every call, for example x-api-key. Stored encrypted, never shown back. |
| Price | USDG per call, from 0.02. |
| Promise | One paragraph: what one call delivers. Disputes are read against it. |
| JSON Schema | Optional. Checked on every response; a mismatch is refunded automatically. |
| Max latency | Up to 60 seconds. A slower answer is refunded automatically. |
| Protection window | 10 minutes to 24 hours (default 1 hour): how long a buyer can dispute, and how long the price stays locked. |
| Payout address | Where each payment lands. Defaults to the connected wallet. |
2. Register the terms
Your wallet signs the settings (a message, no gas), then sends one transaction to the escrow: registerService(id, price, window, promiseHash, payTo). The promise hash ties the text buyers read to what is on-chain; the proxy refuses calls while they differ.
3. Post a deposit
Approve USDG and call depositBond. A call is only sold while your free deposit covers its full price. Each call locks its price until its window closes; size the deposit to the number of calls you expect inside one window. Withdraw the free part any time; calls whose window has closed are released first.
4. Share the covered URL
curl -i https://www.arbiterprotection.xyz/x/<your-id>/any/path?q=1 # 402 with the payment requirementsThe service is listed in the directory unless you untick it. Any x402 client can pay it.
Money
For each call you receive the price minus the fee in the same transaction. The fee is 1% with a floor of 0.005 USDG; the floor pays the gas of the covering transaction. If a call is refunded, the refund comes from your locked deposit, never from the payout you already received.
Writing a good promise
- Say what the input is and what the output contains: fields, units, freshness.
- Declare a JSON Schema when your answer is JSON; it turns broken answers into automatic refunds instead of disputes.
- Do not promise what you cannot check yourself; a vague promise is read in the buyer's favour.