Find something... ⌘K

Supported systems / Coverage

EVM chains

The five EVM chains with a Maxy settler: what the user can swap on each, the contracts an order touches, and what the wallet needs. It is for wallet and app teams adding a BTC buy or sell on an EVM chain.

ChainChain idNative coinBuy BTC withSell BTC forExplorer
Base8453ETHETH, USDCETH, USDC, USDTbasescan.org
Arbitrum42161ETHETH, USDCETH, USDC, USDTarbiscan.io
BNB Chain56BNBBNBBNB, USDC, USDTbscscan.com
Avalanche43114AVAXAVAXAVAX, USDC, USDTsnowtrace.io
Robinhood Chain4663ETHETHETH, USDGrobinhoodchain.blockscout.com

USDC and USDT on BNB Chain have 18 decimals, not 6. Read decimals from Supported tokens rather than assuming it.

Contracts

Each chain has one settler, which holds every escrow, and one verifier, an on-chain Bitcoin node that checks payment proofs. The SDK compiles their addresses in, and a server response never picks the contract a user signs for.

ChainSettlerVerifier
Base0xeC5a05b28dd848F628e19CB26Df32f053e64ab860x8dFED41f68b3749a06a0A9451E6d1701A9C75F9f
Arbitrum, Robinhood Chain0x9e8d10Cae507ed849B140F0bC3C54e6b010670530xDbA3FaD120aE7bBBD42a39eAB65D2A41E030e29A
BNB Chain, Avalanche0xB0d873bF53b09A32139E45d225d16985227cA1Af0xfE9F7A77AdB9BeC68E259c3016cb7154ded5acBc

USDC on the gasless route moves through Permit2, 0x000000000022D473030F116dDEE9F6B43aC78BA3. Implementations, code hashes and who can upgrade what: Contracts.

What the wallet does

RouteCoinsThe walletGas
evm-btc-escrowETH, BNB, AVAXSigns the intent, then sends one escrow transaction that carries the coinsThe user, for one transaction. No allowance is needed
evm-btc-gaslessUSDC on Base and ArbitrumSigns an EIP-2612 permit (skipped when the Permit2 allowance already covers the order) and a Permit2 witness bound to the orderThe solver sends the escrow and pays the gas. The user needs no ETH
btc-evmEvery coin in the sell columnSigns one message, the sell intent. The payout arrives in that walletNone. A user who claims the payout without waiting for the solver pays that one transaction

A refund or cancel is a contract call from the user's wallet, which pays its gas: When it fails.

Wallet requirements

  • Typed data. Every signature is EIP-712. Live, the intent's domain is BitcoinIntentSettler, version 6, the chain id and the settler's address; the sandbox signs a Maxy Sandbox domain that authorizes nothing. Each signature step in a quote carries its typedData and its hash: check the hash, then sign.
  • The right chain. The wallet must be on the paying chain. The SDK asks it to switch; a wallet that cannot throws wrong_chain.
  • A signer the SDK takes. A viem wallet client, an EIP-1193 provider such as an injected wallet, or a key-backed signer on a server: Install and signers. One that cannot sign what the order needs throws signer_unsupported.
  • Over HTTP. Any wallet that signs steps[].typedData and sends transaction (to, data, value).

Before the wallet sends an escrow, POST /orders simulates it. If simulation.ok is false, do not send it. In the sandbox the transaction goes to the zero address with gas "1" and is never sent.

List one chain's pairs

The samples use the setup from Get a quote.

curlTypeScript
Copy
curl -s -H "x-maxy-key: $MAXY_API_KEY" "$BASE/pairs" \ | jq -r '.pairs[] | select(.from.chain == 4663 or .to.chain == 4663) | "\(.label) \(.route) \(.settler)"'

Each pair names the settler it settles on, the same address as above. Step by step: Buy BTC, Pay with USDC, Sell BTC. Moving a coin between these chains first: Coin to coin.