Find something... ⌘K
User flows and examples
A first order end to end, every swap route, signing, and tracking.
Swaps
- Buy BTC The whole buy with raw calls, from a price to the BTC arriving. Run these samples in order, in one shell or one file, and with a test key they run as they…
- Other coins The same order with a different coin. USDC signs without gas, SOL pays from a Solana wallet, and coin to coin moves between EVM chains with no Bitcoin. The…
- Sell BTC Sell BTC for a coin on an EVM chain. The solver locks the payout in the settler before the user sends any BTC. The user pays one Bitcoin output, and a…
Status tracking
- Order states and records Every route reports one state, from nine values. Branch on state; rawStatus is for support. Then match what happened against your own books.
- Webhooks Webhooks tell your server when an order changes, so your records stay right when no user is watching. Maxy sends one signed order.updated event for each…
- When it fails Where the money is when an order goes wrong, and who acts next. Every exit but a proven BTC payment sends a buyer's coins back, and no Maxy server can…