Maxy architecture / Bitcoin proofs
Submitting a proof
Who sends the Bitcoin payment proof to the settler, who is paid when it lands, and how it shows in an order's state. It is for teams that track orders on chain, and for users who want a sell paid out without waiting. What the proof holds and checks: Bitcoin verification.
Who submits the proof
| Order | Submitted by | Paid to |
|---|---|---|
| Buying BTC | The solver, to be paid | The solver, with its bond back |
| Selling BTC | The solver; or anyone | Only the user |
On a sell, a user who does not want to wait can send the proof themselves. GET /orders/{id}/claim answers it as a transaction any wallet may send. The SDK's swap.claimBtcToEvm builds the proof from public Bitcoin data and sends it from the user's wallet. If the verifier is behind, it first submits the missing headers from that wallet, up to 144 of them. Either way, the payout goes only to the user.
Proofs and order states
A buy's state does not wait for the proof: it reads completed once the solver's payment exists (btcTxId). The proof decides only when the solver is paid. A sell reads completed when the proof has released the payout to the user.
How the user gets coins back when no proof arrives: When it fails.