# 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.

| Chain | Chain id | Native coin | Buy BTC with | Sell BTC for | Explorer |
| --- | --- | --- | --- | --- | --- |
| Base | 8453 | ETH | ETH, USDC | ETH, USDC, USDT | basescan.org |
| Arbitrum | 42161 | ETH | ETH, USDC | ETH, USDC, USDT | arbiscan.io |
| BNB Chain | 56 | BNB | BNB | BNB, USDC, USDT | bscscan.com |
| Avalanche | 43114 | AVAX | AVAX | AVAX, USDC, USDT | snowtrace.io |
| Robinhood Chain | 4663 | ETH | ETH | ETH, USDG | robinhoodchain.blockscout.com |

USDC and USDT on BNB Chain have 18 decimals, not 6. Read `decimals` from [Supported tokens](https://maxy.co/docs/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.

| Chain | Settler | Verifier |
| --- | --- | --- |
| Base | `0xeC5a05b28dd848F628e19CB26Df32f053e64ab86` | `0x8dFED41f68b3749a06a0A9451E6d1701A9C75F9f` |
| Arbitrum, Robinhood Chain | `0x9e8d10Cae507ed849B140F0bC3C54e6b01067053` | `0xDbA3FaD120aE7bBBD42a39eAB65D2A41E030e29A` |
| BNB Chain, Avalanche | `0xB0d873bF53b09A32139E45d225d16985227cA1Af` | `0xfE9F7A77AdB9BeC68E259c3016cb7154ded5acBc` |

USDC on the gasless route moves through Permit2, `0x000000000022D473030F116dDEE9F6B43aC78BA3`. Implementations, code hashes and who can upgrade what: [Contracts](https://maxy.co/docs/contracts).

## What the wallet does

| Route | Coins | The wallet | Gas |
| --- | --- | --- | --- |
| `evm-btc-escrow` | ETH, BNB, AVAX | Signs the intent, then sends one escrow transaction that carries the coins | The user, for one transaction. No allowance is needed |
| `evm-btc-gasless` | USDC on Base and Arbitrum | Signs an EIP-2612 permit (skipped when the Permit2 allowance already covers the order) and a Permit2 witness bound to the order | The solver sends the escrow and pays the gas. The user needs no ETH |
| `btc-evm` | Every coin in the sell column | Signs one message, the sell intent. The payout arrives in that wallet | None. 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](https://maxy.co/docs/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](https://maxy.co/docs/install-and-signers#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](https://maxy.co/docs/buy-btc#get-a-quote).

```sh
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)"'
```

```ts
import { createMaxyClient } from 'maxy-labs/core';

const maxy = createMaxyClient(); // reads MAXY_API_KEY
const pairs = await maxy.pairs.list();
for (const p of pairs.filter((p) => p.from?.chain === 4663 || p.to?.chain === 4663)) console.log(p.label, p.route, p.settler);
// ETH on Robinhood → BTC evm-btc-escrow 0x9e8d10Cae507ed849B140F0bC3C54e6b01067053 …
```

Each pair names the settler it settles on, the same address as above. Step by step: [Buy BTC](https://maxy.co/docs/buy-btc), [Pay with USDC](https://maxy.co/docs/pay-with-usdc), [Sell BTC](https://maxy.co/docs/sell-btc). Moving a coin between these chains first: [Coin to coin](https://maxy.co/docs/coin-to-coin).

---
Source: https://maxy.co/docs/evm-chains (Maxy Docs › Supported systems › Coverage)
