Find something... ⌘K

Start / Overview

How a swap works

What happens to the coins when a user buys BTC with ETH on Base. Every other route reuses this flow. Terms are in the glossary.

Sign the intent EIP-712, scriptHash
Escrow on the settler openNativeBuyIntent
BTC to your address bc1q…, native SegWit
Proof releases escrow verifier on chain
StepWhat happensWho actsTime
1. QuoteGET /quote returns the amount and the stepsyour appunder a second
2. SignThe user signs amount, price, recipient and deadlineswalletthe user's
3. EscrowOne transaction locks the coins on the settlerwalletone block
4. CommitThe solver commits and posts a bond, 1% by defaultsolverseconds
5. PayThe solver sends the BTC to the user's addresssolvertypically 3 seconds
6. ProveThe solver proves the payment after 1 confirmationsolverabout 10 minutes
7. ReleaseThe settler pays the solvercontractsame transaction as 6

The user has the BTC at step 5, and the order reads completed from then on. Steps 6 and 7 are how the solver gets paid.

Who holds the funds

MomentThe user's coinsThe BTC
Quote, signingthe user's walletthe solver
Escrow open, committedthe settlerthe solver
BTC paidthe settlerthe user
Proof acceptedthe solverthe user
Solver never commitsback to the user after 2 hoursnever sent
Solver commits, never paysback to the user with the bond, after 144 blocksnever sent

No Maxy server can move the escrow or mark a payment as made. The security page lists every exit an escrow has.