LibraryMarkets2017Design paperCorpus record
0x: An open protocol for decentralized exchange on the Ethereum blockchain
0x. Will Warren and Amir Bandeali.
The 2017 0x paper: off-chain signed orders, on-chain settlement, and relayers who host order books without taking custody. It is the reference design for 'the book is off-chain, the swap is on-chain'.
0x specifies off-chain orders that anyone can relay, and an on-chain settlement contract that checks signatures and moves the tokens, so the order book does not have to live in the contract.
The five-minute read
Orders are messages
A maker signs an order: this much of A for that much of B, until a time, for this fee. The signature is the commitment. The chain has not seen it yet.
Relayers match without custody
A relayer keeps an order book and tells a taker about the order. The relayer does not hold the tokens. Settlement is a contract call the taker makes.
The exchange contract is the settlement layer
It checks the signature, the expiry, the fill so far, and then it pulls tokens. A relayer who disappears does not take the inventory, because they never had it.
Fees pay the relayer
The paper includes a fee the maker attaches, paid in a protocol token in the original design. That choice ties marketplace incentives to the token. Later versions loosened it.
On-chain order books were the cost being avoided
Putting every quote in storage was expensive. 0x's split is a response to that cost, and it creates a new problem: which relayer has the order, and is it still valid.
One action, walked through
- A maker approves the exchange contract to move their token, and signs an order off-chain.
- A relayer indexes the order and shows it to takers.
- A taker submits the order to the exchange contract, possibly filling only part of it.
- The contract verifies the signature and that the remaining amount and the expiry allow this fill, then transfers both sides.
- A partially filled order stays valid for the rest until it expires or the maker cancels it on-chain.
The argument, unpacked
Off-chain quotes can lie about availability
The maker may have spent the tokens, or cancelled, between the relayer's screen and the transaction. A taker learns the truth on-chain. The paper's design accepts failed settlement as the price of cheap quotes. Interfaces that hide failures are pretending otherwise.
Relayers compete on flow, not on custody
Because anyone can settle any properly signed order, a relayer does not own the liquidity. They own the attention. The paper's open protocol is a bet that liquidity wants to be quotable in more than one place. It also means a relayer's commercial moat is not the matching contract.
The protocol token is not required by the idea of signed orders
The original fee design uses one. The useful mechanism, signed orders plus on-chain settlement, can exist without it, and later 0x versions moved that way. Separate the matching idea from the 2017 token choice.
What has to be true
- Makers have approved the contract and still hold the tokens at settlement time.
- Takers can submit a transaction before the order expires. A congested chain turns a firm quote into a maybe.
- Cancellations are visible. A cancel that does not land leaves the order fillable.
- Tokens transfer in the amount the contract expects. Fee-on-transfer tokens desynchronise the trade.
What happened after the paper
0x shipped, revised its settlement contracts, and became infrastructure that aggregators and market makers quoted against. The 2017 paper is the off-chain order and on-chain settlement split. The original fee-token mechanics should not be described as if they were unchanged.
What to check before you use the idea
- Where does the order book live, and who can settle an order they did not originate?
- What happens if the maker's balance is gone by the time the transaction lands?
- How does cancellation become visible to takers?
- Is a protocol token required for this deployment's fees, or is that the 2017 design only?
Terms
- Maker
- The party who signs an off-chain order and provides the liquidity.
- Relayer
- A party who broadcasts orders and may charge a fee, without holding the assets.
- Settlement
- The on-chain transaction that checks the signature and moves tokens.
- Partial fill
- Taking only some of a signed order, leaving the rest open until expiry or cancellation.
The problem the paper names
An on-chain order book writes every cancel and every quote to the base chain. That is expensive and public in the wrong ways. A fully custodial exchange avoids the cost and concentrates the risk. 0x splits the quote from the settlement.
What the design proposes
- Makers sign an order that names the assets, the price, the expiry and a taker policy.
- A relayer stores and serves orders. The relayer does not, in the core protocol, hold the assets.
- A taker submits a matching order to the settlement contract, which moves tokens if the signature and the allowances are valid.
How the mechanism is specified
- Cancels and fills have to be handled so a maker is not double-spent. The paper specifies on-chain state for the parts that must be authoritative.
- Relayers can charge under their own scheme. The protocol does not set their business model in stone.
- Later 0x versions and NFT extensions are not the 2017 text.
What this page does not treat as proven
- Off-chain orders are only as live as the API that serves them. The paper does not remove liveness risk. It moves it.
- Allowance and signature phishing are user-safety problems adjacent to the design.
- This is not an automated market maker. It does not invent a price. It transports an order.
Why a venture studio still reads it
Still the right diagram when a venture says 'we are non-custodial' but keeps the order book on a server. 0x forces the next sentence: what exactly is signed, and what exactly hits the chain.
This is Blockchain Lab's reading of a public design paper. It is not the paper, not a copy of it, and not an offer of tokens, equity, custody or a partnership. Later network behaviour can diverge from the text. Nothing here is investment, legal or technical advice.
Research status: Design paper. Last reviewed: 1 October 2026. This is a reading of a public paper, not investment, legal or security advice.
