Skip to main content

Supported Chains and Token Addresses

· 4 min read
swapapi
swapapi Team

swapapi supports 46 EVM-compatible blockchains. Use the chain ID in your API requests.

Major Chains

ChainChain IDNative TokenNotes
Ethereum1ETHMainnet, highest liquidity
Arbitrum42161ETHL2 rollup, low fees
Base8453ETHCoinbase L2, fast finality
Optimism10ETHL2 rollup, EVM equivalent
Polygon137POLSidechain, low fees
BSC56BNBBinance chain, high throughput
Avalanche43114AVAXSubnets, fast finality
Fantom250FTMDAG-based, fast
Gnosis100xDAIStablecoin-native

Layer 2 Chains

ChainChain IDNative TokenType
Linea59144ETHzkEVM
Scroll534352ETHzkEVM
Blast81457ETHOptimistic L2
Mantle5000MNTModular L2
Mode34443ETHOptimistic L2
zkSync Era324ETHzkEVM
Polygon zkEVM1101ETHzkEVM
Arbitrum Nova42170ETHAnyTrust
Taiko167000ETHBased rollup
Manta169ETHzkEVM

Emerging Chains

ChainChain IDNative TokenNotes
Sonic146SHigh throughput
Berachain80094BERAEVM-compatible
Monad143MONParallel EVM
MegaETH4326ETHReal-time blockchain

Other EVM Chains

ChainChain IDNative TokenNotes
Celo42220CELOMobile-first
Cronos25CROCrypto.com chain
Kava2222KAVACosmos SDK
Metis1088METISOptimistic L2
Filecoin314FILStorage network
Core1116COREBitcoin-aligned
Boba288ETHHybrid compute
Boba BNB56288BOBABNB L2
BTTC199BTTBitTorrent
Haqq11235ISLMIslamic finance
Harmony1666600000ONESharded
ThunderCore108TTPoS
ZetaChain7000ZETAOmnichain
SKALE Europa2046399126sFUELApp-specific
Rootstock30RBTCBitcoin sidechain
zkLink810180ETHAggregated L3
ApeChain33139APEApeCoin ecosystem
Hemi43111ETHModular
Tatara129399ETHL2
Katana747474ETHGame-focused
HyperEVM999HYPEHyperliquid
Plasma9745pETHL2
X Layer196OKBOKX chain

Token Addresses by Chain

Ethereum (Chain ID: 1)

TokenAddressDecimals
WETH0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc218
USDC0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB486
USDT0xdAC17F958D2ee523a2206206994597C13D831ec76
DAI0x6B175474E89094C44Da98b954EedeAC495271d0F18
WBTC0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C5998

Arbitrum (Chain ID: 42161)

TokenAddressDecimals
WETH0x82aF49447D8a07e3bd95BD0d56f35241523fBab118
USDC0xaf88d065e77c8cC2239327C5EDb3A432268e58316
USDT0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb96
DAI0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da118

Base (Chain ID: 8453)

TokenAddressDecimals
WETH0x420000000000000000000000000000000000000618
USDC0x833589fCD6eDb6E08f4c7C32D4f71b54bdA029136
USDT0xfde4C96c8593536E31F229EA8f37b2ADa2699bb26
DAI0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb18

Optimism (Chain ID: 10)

TokenAddressDecimals
WETH0x420000000000000000000000000000000000000618
USDC0x0b2C639c533813f4Aa9D7837CAf62653d097Ff856
USDT0x94b008aA00579c1307B0EF2c499aD98a8ce58e586
DAI0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da118

Polygon (Chain ID: 137)

TokenAddressDecimals
WMATIC0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf127018
USDC0x3c499c542cEF5E3811e1192ce70d8cC03d5c33596
USDT0xc2132D05D31c914a87C6611C10748AEb04B58e8F6
DAI0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A06318

BSC (Chain ID: 56)

Decimal Gotcha

USDC and USDT on BSC use 18 decimals instead of 6. Always verify before constructing transactions.

TokenAddressDecimals
WBNB0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c18
USDC0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d18
USDT0x55d398326f99059fF775485246999027B319795518
DAI0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc318

Making Requests

Use the chain ID in the URL path:

# Ethereum
curl "https://api.swapapi.dev/v1/swap/1?tokenIn=...&tokenOut=..."

# Arbitrum
curl "https://api.swapapi.dev/v1/swap/42161?tokenIn=...&tokenOut=..."

# Base
curl "https://api.swapapi.dev/v1/swap/8453?tokenIn=...&tokenOut=..."

TypeScript Helper

const CHAINS = {
ETHEREUM: 1,
ARBITRUM: 42161,
BASE: 8453,
OPTIMISM: 10,
POLYGON: 137,
BSC: 56,
AVALANCHE: 43114,
FANTOM: 250,
// ... add more as needed
} as const;

async function swap(chainId: number, tokenIn: string, tokenOut: string, amount: string) {
const res = await fetch(
`https://api.swapapi.dev/v1/swap/${chainId}?` +
`tokenIn=${tokenIn}&tokenOut=${tokenOut}&amount=${amount}&sender=${sender}`
);
return res.json();
}

Chain Selection Tips

For Lowest Fees

Use L2s: Base, Arbitrum, Optimism. Transaction costs are 10-100x lower than Ethereum mainnet.

For Highest Liquidity

Ethereum mainnet has the deepest liquidity for major tokens.

For Fastest Finality

Base and Arbitrum have ~1-2 second block times.

For Specific Ecosystems

  • DeFi: Ethereum, Arbitrum, Base
  • Gaming: Polygon, Immutable X
  • Payments: Gnosis (xDAI), Base
  • Bitcoin-aligned: Rootstock

Adding New Chains

Request new chain support by opening an issue on GitHub. We prioritize chains with:

  1. Significant TVL and user base
  2. Active DeFi ecosystem
  3. Reliable RPC infrastructure
  4. Community demand