Find something... ⌘K

Maxy for your app / Use cases

For stablecoin apps

Let your users move between dollars and native Bitcoin. They buy BTC with USDC and pay no gas, or sell BTC for USDC, USDT or USDG with the payout locked before their BTC moves. For stablecoin wallets, dollar accounts and payment apps whose users hold stablecoins and want real BTC at their own address.

What each stablecoin does

ChainBuy BTC withSell BTC into
BaseUSDC, gaslessUSDC, USDT
ArbitrumUSDC, gaslessUSDC, USDT
BNB Chain—USDC, USDT, both with 18 decimals
Avalanche—USDC, USDt
Robinhood Chain—USDG

GET /pairs is always the current list, and GET /tokens?chain=… gives each token's address and decimals. Read decimals from the API rather than assuming 6: Chains and tokens.

What to build

  1. 01 Show both directions live. Price buys and sells as the user types, as below.
  2. 02 Buy with USDC, no gas. The wallet signs a permit when needed and a transfer bound to the order, and sends nothing. The solver opens the escrow and pays its gas, so a user who has never held ETH can finish: Pay with USDC.
  3. 03 Sell into a stablecoin. The user's EVM wallet signs one sell order, with no gas. The solver locks the payout in the settler, then the user pays one Bitcoin output of exactly sats, and a proof releases the payout to them: Sell BTC.
  4. 04 Follow every order. Webhooks keep your activity list right when the user closes the app: Webhooks.

Price both directions

Prices need your key and no wallet, and reserve nothing. BASE and KEY are as on Get a price.

curlTypeScriptPython
Copy
curl -sG -H "x-maxy-key: $MAXY_API_KEY" "$BASE/price" --data-urlencode "from=USDC on arbitrum" -d to=BTC -d amount=100 | jq -c '{route, receive: .formatted.receive}' curl -sG -H "x-maxy-key: $MAXY_API_KEY" "$BASE/price" -d from=BTC --data-urlencode "to=USDT on arbitrum" -d amount=0.001 | jq -c '{route, receive: .formatted.receive}'

Amounts

Every amount is a string in the smallest unit: 6-decimal units for USDC, USDT and USDG, except 18 decimals for USDC and USDT on BNB Chain, and sats for BTC. formatted has the same amounts in words, such as 61.96 USDT on Arbitrum. A sell is at least about $10; a buy with USDC starts at 546 sats after costs; the largest order is your key's cap: Order size.

When something goes wrong

If the solver never opens a USDC escrow, the USDC never left the wallet, and the signature lapses after 2 hours. A sell must be paid exactly and on time, or the payout cannot be released to the user: show the exact amount and the time left from expiresAt, and ask for one payment. Both cases, and who acts: When it fails.

Keys

Prices and quotes can come from the page with a publishable key; orders go through your server with the secret key: Keys and limits.