# What is LOPW

> LOPW in plain words: a seller puts money behind a promise, every paid answer comes with a signed receipt, and a broken promise pays the buyer automatically. Start here.

*LOPW documentation · Start here.* Canonical page: https://lopw.com/docs/ · This Markdown twin: https://lopw.com/docs/index.md · Index of all pages: https://lopw.com/llms.txt · Everything in one file: https://lopw.com/llms-full.txt

LOPW (Layer of Onchain Programmable Warranties) lets a paid API put real money behind what it promises. If a signed receipt, or a named price oracle, proves the promise was broken, the buyer is paid from that money automatically. x402 proves the agent paid; LOPW puts capital behind what the seller promised.

- [How a warranty works](https://lopw.com/docs/start/how-it-works.html): An animated walk through offer, payment, receipt, check, claim, validator and payout.
- [Getting started](https://lopw.com/docs/getting-started.html): Three tracks: agents that buy, APIs that sell, apps that read bonds.
- [Protocol reference](https://lopw.com/docs/protocol/): Every type, hash, predicate, function, error code and state, exactly as the contracts implement them.
- [For AI agents](https://lopw.com/docs/agents/): Markdown twins, llms.txt, JSON Schemas and test vectors you can consume directly.

## In plain words

Think of a contractor who leaves a **deposit** with a neutral bank before starting a job, together with a written list of exactly what they promise. When the job is done they hand you a **signed receipt** describing what they delivered. If that receipt itself shows a promise was broken, the bank pays you from the deposit straight away. No lawyers, no arguing, no waiting.

1. **The seller puts down a deposit.** An API provider locks USDC stake in a smart contract (the Bond Registry) and publishes the exact conditions it promises to meet: its terms.
2. **Every sale comes with a signed receipt.** The buyer pays as usual over x402 and gets a receipt the seller signed, tied to that payment, that request and that response.
3. **Broken promise, automatic payout.** If the receipt, or a named price oracle, proves a breach, a contract pays the buyer from the deposit. Anything it cannot prove is rejected.

Three everyday analogies help, and each has a limit worth knowing:

| Analogy | What matches | Where it stops |
| --- | --- | --- |
| A security deposit on a rental | Money locked up front; returned when the promise was kept; kept by the other side when it was not | A landlord argues about damage. LOPW pays only on breaches a contract can prove from the evidence alone, so there is nothing to argue |
| A warranty card in the box | The promise is written down before you buy, and it is the seller’s promise, not a third party’s | A warranty card needs a claims department. LOPW’s claims department is a contract that decides in one transaction |
| A notarised receipt | The seller signs exactly what it delivered, so it can be held to it later | A notary checks identity, not truth. LOPW checks the receipt against the seller’s own promise and, for prices, against an independent oracle |

## Why it exists

Autonomous agents buy APIs, data, inference and compute without a human watching. Payment protocols such as x402 solve *paying*: the seller knows it was paid. They do not solve *trusting*: the buyer has no recourse if the data is stale, the response is padded, the status was wrong or the price was invented. LOPW adds that missing layer.

Before paying, an agent can read what a service promises and how much stake stands behind it. After paying, it can verify what it received and enforce the warranty on its own, with no human in the loop.

> **What LOPW guarantees**
>
> - A buyer can read a seller’s stake and warranty terms before paying.
> - Every paid response carries a seller-signed receipt bound to the payment, the request, the response and the terms.
> - A breach that is provable from signed evidence, or from a named on-chain oracle, pays out without human review.

## What LOPW is not

- **Not escrow.** It does not hold every payment until a service is completed. The x402 payment settles normally.
- **Not arbitration.** There are no judges, DAO votes or human dispute resolution for supported conditions.
- **Not a quality judge.** It does not decide whether an AI answer was good, useful or intelligent, nor latency or availability seen only by the buyer.

LOPW focuses on conditions that can be proven deterministically from cryptographic evidence, contract state or a named on-chain oracle. Six such conditions, the [predicates P1 to P6](https://lopw.com/docs/protocol/predicates.html), exist in version 1.

## Five words you will meet everywhere

| Word | Meaning |
| --- | --- |
| **Stake** (or bond) | USDC a seller locks in the Bond Registry. It is the only money a claim can ever pay from. |
| **Terms** | The list of predicates a service promises, their limits, and a claim window. Hashed; the hash is pinned in every offer. |
| **Offer** | The seller’s signed promise for one call, shown before payment in the 402 response. |
| **Receipt** | The seller’s signed statement of what it served, returned with the paid response. |
| **Claim** | One transaction that submits an offer and a receipt to the Claims contract and ends paid or rejected. |

The full [glossary](https://lopw.com/docs/start/glossary.html) has every term. If you prefer to see it move, go to [How a warranty works](https://lopw.com/docs/start/how-it-works.html).

## Where next

- [Who it is for](https://lopw.com/docs/start/who-it-is-for.html): Agents, API sellers and platforms: what each gets and what each must do.
- [Networks](https://lopw.com/docs/networks/): One protocol on every chain: Stellar as the reference binding, the EVM networks, and the planned Solana binding.
- [FAQ](https://lopw.com/docs/start/faq.html): Short answers to the questions people ask first.
- [Security model](https://lopw.com/docs/deep-dive/security.html): Trust assumptions, threats, mitigations and known limits.
- [Proofs and scenarios](https://lopw.com/docs/deep-dive/proofs-and-scenarios.html): What has been demonstrated on a live network, and how to rerun it.
