Find something... ⌘K

Maxy architecture / System overview

System overview

The parts of Maxy, what each one does, and how an order moves between them. It is for architects and security reviewers who want the whole picture before the details.

Your wallets EVM, Bitcoin, Solana
Maxy SDK builds, verifies
Maxy API never holds funds
Contracts release on proof

The parts

PartRun byWhat it doesWhat it cannot do
HTTP APIMaxyAnswers prices, quotes, orders and status, with what the wallet should sign and sendHold funds, or send a transaction for the user
TypeScript SDKYou, in your app or serverCalls the API and checks every answer against what it computed or compiled in, then asks the walletHold a key
SettlerA contract on each EVM chainHolds every escrow. Releases it against a proof of the Bitcoin payment, or after a deadline back to whoever locked itSend it anywhere else
VerifierA contract on each EVM chainAn on-chain Bitcoin node: checks headers' proof of work and difficulty, and payment proofs against themTake anyone's word for a payment
Header relayerMaxy, and anyone who wants toSubmits new Bitcoin block headers to each verifier, every minuteForge a payment: the verifier checks the proof of work itself
SolversIndependent solver operators. Anyone can join by posting the bondQuote, commit with a bond, pay the BTC, then prove it to be paidTake an escrow without a proof
Solana programA program on SolanaHolds SOL escrows, with its own Bitcoin nodeRelease an escrow without a proof

Maxy runs on a decentralised network of independent solvers. Solving is open by design: any solver that posts the bond can commit to an order on the settler, and the first valid fill wins it. The API names no designated filler, so every order is open to the whole network.

Competition works in the user's favour. Solvers compete on price and speed for every order, and that competition is what keeps a solver's margin tight. Each solver puts its own capital at risk. It stakes a bond when it commits, pays the Bitcoin first, and is paid only after that payment is proven on chain. A solver that commits and fails to deliver forfeits its bond to the user.

No single solver is a point of failure. If one solver is offline, another can fill. If none does, the user's coins return from the settler, and no solver and no Maxy server can hold them back. Maxy operates one solver in the network, on the same terms as every other.

The SDK checks a solver named in a server answer against Maxy's published solver list.

Around the contracts, webhooks send your server one signed event per change of an order, and Status and GET /health show the API, the solver, Bitcoin and each verifier's lag.

Solvers

The solver list: the solver accounts compiled into the SDK. A server answer can choose among them, never add one.

AccountAddressWhat it does
Maxy's solver Safe0x36E6B9FC60c90700359c7d4A44eb3fafb0837dA7, every EVM chainCommits to orders, opens gasless escrows and fills sells
Its gas account0xEd500b2dB269d5e2d798651Ea07e1cf338ECb150, every EVM chainAn owner of the Safe, which sends the solver's transactions
Its Bitcoin walletbc1q5202srfex2lqkca73w4fe5ctq2hweyuw8yqtcxPays the BTC on buys
Its Bitcoin custodybc1q0aalxvqhynw56kwul7979xfpzvm3f5vqgxke2we25wgzdfedlptqerlkgsA 2-of-2 address the SDK accepts as a sell deposit

Filled orders each calendar month (UTC), under the solver account that committed to each order, up to the latest indexed fill. Each commit names its solver in the filler field of the settler's IntentCommitted event, so anyone can repeat the count from chain data: Contracts.

Calendar month (UTC)Maxy's solver SafeMaxy's gas account0x46c8…db6d0xcc43…15f90xd731…66630xe07c…483dAll
4 months before081100284
3 months before167406179
2 months before641000065
1 month before350000035
The latest month340010035

How an order moves

A buy step by step, from quote to release, and who holds the funds at each moment: How a swap works.

Where trust sits

  • Funds. Until the BTC is proven paid, the user's coins sit in the settler on their own chain, never with Maxy. If no solver pays, the user takes them back, with the bond if one committed.
  • Addresses. Contract addresses, chain ids and signing domains are compiled into the SDK. A server answer can choose among them, never add a new one: Contracts.
  • Proofs. Only a Bitcoin proof the verifier accepts moves an escrow to a solver. No Maxy server can mark a payment as made: Bitcoin verification.
  • Liveness. The contracts cannot force a solver to fill. If none does, the user's way out is a refund: When it fails.

More: Contract architecture and Speed and latency.