Supported systems / Coverage
Solana coverage
Swaps between SOL and native BTC, for apps whose users hold a Solana wallet. Both directions settle through Maxy's settlement program on Solana, which plays the settler's part: the coins wait in its escrow until a Bitcoin payment is proven there.
| SOL to BTC | BTC to SOL | |
|---|---|---|
| Route | sol-btc | btc-sol |
| In escrow | The user's SOL | The solver's SOL |
| The Solana wallet signs | A readable quote request, then the deposit | The offer, then the stage and lock |
| Solana fees | The user | The solver: it sends every Solana transaction, and the wallet needs no SOL |
| Bitcoin address | Receives at bc1q… or bc1p… (the sandbox takes bc1q… only) | Pays from bc1q… or bc1p…, through a Bitcoin signer |
| Smallest order | About $2 | About $2 |
Bitcoin confirmations (GET /pairs) | 1 | 1 |
The program is 97CyZ9qdv7tec4LBM9d459mWLcZDv5CDcEH7Pw15QBHN, with its Bitcoin node AVna5sHdDYF5uhS8KK7muNxCFe92nveopbHrfuq8Q12o. GET /pairs names the program as each Solana pair's settler.
SOL to BTC
- 01 Quote.
GET /quotewithfrom=SOL, the Solana wallet asfromAddressand the Bitcoin address astoAddress. - 02 Sign the request. The wallet signs the quote's readable message. The solver then opens its offer on chain.
- 03 Deposit. The wallet signs the deposit, and the SOL goes into the program's escrow, never to a Maxy address.
- 04 Pay. The solver pays the BTC to the user's address. The order reads
completedoncebtcTxIdis set. - 05 Release. After one Bitcoin confirmation the payment is proven on Solana, and the program pays the SOL to the solver.
An offer the user never funds expires after 10 minutes, and the next order step answers quote_expired: quote again. An escrow whose BTC is never proven goes back to the user's wallet when it expires. rawStatus walks OPEN, PAYING, LOCKED, PAID, SETTLED.
The samples use the setup from Get a quote. Live, SOL_WALLET is your user's Solana address.
export SOL_WALLET=4JL8yQFQo3c8dy5twuA7kjXNfGk6J7JfSY8qm5vi58aa curl -s -G "$BASE/quote" -H "x-maxy-key: $MAXY_API_KEY" -d from=SOL -d to=BTC -d amount=1 \ -d fromAddress="$SOL_WALLET" -d toAddress="$MY_BTC_ADDRESS" | jq '{route, toAmount, steps: [.steps[]?.id]}'
The whole order, signatures included, is one call with buyBtcWithSolana: Pay with SOL. Over HTTP, POST /orders takes the signed request and answers the deposit to sign, which goes to POST /orders/{id}/steps. Track it with GET /status?orderId=…&route=sol-btc.
BTC to SOL
The user makes an offer on the program, and the solver takes it by locking its own SOL there. The user's Bitcoin wallet signs the payment, but it is not broadcast until the SOL is locked; the solver then sends it. After a confirmation the solver proves the payment on Solana and settles, and the program pays the SOL to the offer's maker, and only to them.
curl -s -G "$BASE/quote" -H "x-maxy-key: $MAXY_API_KEY" -d from=BTC -d to=SOL -d amount=0.001 \ -d fromAddress="$MY_BTC_ADDRESS" -d toAddress="$SOL_WALLET" | jq '{route, toAmount, steps: [.steps[]?.id]}'
Then follow steps in order. With the SDK, swap.createBtcToSolOrder places it, and swap.settleBtcToSol answers the settlement's Solana signature once it exists. If the solver's fresh price is more than 0.1% below the quote, the answer is quote_mismatch before any wallet prompt: quote again. An offer the solver never fills is closed with one more signature.
BTC to any other Solana coin
A coin the settler does not pay, a memecoin included (to=BONK on solana, or any mint address), is two legs from the user's own wallet: the settler pays SOL as above, less a small reserve the wallet keeps for fees, then the wallet swaps it into the coin. The quote's swap step names GET /orders/{id}/bridge?route=btc-sol, which answers the swap transaction, checked (only the swap program, at most that SOL, the coin into this wallet), once the settler has paid. With the SDK: swap.sendJupiterLeg(order, solana).
What differs from EVM
- No settler contract. The escrow is the program's, and a Bitcoin payment is proven to its own Bitcoin node instead of an EVM verifier.
- No EIP-712. The wallet signs a readable text message and Solana transactions. It never sends: the API sends what it signed.
- The signer. The SDK takes the shape browser wallets inject:
address,signMessageover text, andsignTransactionover a base64 transaction (Install and signers).
The Bitcoin side of both directions: Bitcoin coverage.