Skip to main content
Single endpoint, same shape as Solana / TON. The EVM-specific calldata sits under data.evm. See the Swap Quoting page for the full input parameters.

Native sentinel

Standard EIP-7528 placeholder — use this tokenIn / tokenOut for the chain’s native token (ETH on Ethereum/L2s, BNB on BNB Chain, MATIC on Polygon, AVAX on Avalanche, …). The router wraps/unwraps automatically.

Supported chains

Full list of integer chain IDs: see MOBULA_CHAIN_MAP in the chains package.

Request

Response — data.evm

data.evm.transaction fields

Signing

The wallet broadcasts directly — no /swap/send call needed for EVM (the call goes straight from the user’s wallet to their RPC).

Routing

All EVM swaps go through MobulaRouter, deployed identically on each supported chain. Under the hood it dispatches to the best aggregator (KyberSwap, NAOS, Li.Fi) — pick one explicitly via onlyRouters or let the API choose. DEX filtering (Uniswap V2/V3/V4, Curve, Balancer, PancakeSwap, Aerodrome, Velodrome, Sushi, …) via onlyProtocols / excludedProtocols.

Limits

  • Approvals required for any non-native sell token. Always check approvals[] and execute first.
  • Gas estimationgasLimit is a router-level upper bound. Wallets typically simulate to tighten.
  • Address case — both lowercased and EIP-55 checksummed accepted on input.