Skip to content
Introduction

LCX Liberty. American DeFi. Your keys. Your assets. Your control.

Getting started

Introduction

What the LCX Liberty DEX API is, where its prices come from, and what it does not do.

What it is

The LCX DeFi product line. Nothing in this API changes who holds your assets: it prices, and it hands back calldata for you to sign yourself.

LCX Liberty DEX is a DEX aggregator, and this is its API. Give it a chain, a pair and an amount. It returns the best route it can find across the pools it indexes, plus the calldata to execute that route if you ask for it.

What separates it from most swap APIs is where the answer comes from. LCX Liberty DEX runs its own pool index: more than 1,650,000 pools and 2,500,000 tokens across every chain we index and 100+ venues, read from chain state rather than bought from another aggregator and resold. A quote is computed against pool reserves we hold, so the route we return is the route that executes.

Quoting and execution both cover every chain we index. GET /v1/chains carries routerDeployed per chain: branch on that field rather than on a list you keep yourself, and a chain we add later needs no change on your side.

Coverage

ChainChain IDGas coinRouter contract
Ethereum1ETH0x0000000000b1ae06c96aB73FF4360d7AeAaB56F0View the Ethereum router on its block explorer
Base8453ETH0x0000000000b1ae06c96aB73FF4360d7AeAaB56F0View the Base router on its block explorer
Arbitrum One42161ETH0x0000000000b1ae06c96aB73FF4360d7AeAaB56F0View the Arbitrum One router on its block explorer
OP Mainnet10ETH0x0000000000b1ae06c96aB73FF4360d7AeAaB56F0View the OP Mainnet router on its block explorer
Robinhood Chain4663ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Robinhood Chain router on its block explorer
BNB Chain56BNB0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the BNB Chain router on its block explorer
Polygon137POL0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Polygon router on its block explorer
Avalanche43114AVAX0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Avalanche router on its block explorer
Unichain130ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Unichain router on its block explorer
Monad143MON0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Monad router on its block explorer
HyperEVM999HYPE0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the HyperEVM router on its block explorer
Arc5042USDC0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Arc router on its block explorer
Plasma9745XPL0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Plasma router on its block explorer
Ink57073ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Ink router on its block explorer
World Chain480ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the World Chain router on its block explorer
MegaETH4326ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the MegaETH router on its block explorer
Linea59144ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Linea router on its block explorer
Soneium1868ETH0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Soneium router on its block explorer
Gnosis100XDAI0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Gnosis router on its block explorer
Cronos25CRO0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Cronos router on its block explorer
Sonic146S0x0000000000654902B6Ed6cC240cc81CB4c4a3dffView the Sonic router on its block explorer

Two addresses, each the same on every chain it serves: one on Ethereum, Base, Arbitrum and OP Mainnet, and one on Robinhood Chain, BNB Chain, Polygon, Avalanche, Unichain, Monad, HyperEVM, Arc, Plasma, Ink, World Chain, MegaETH, Linea, Soneium, Gnosis, Cronos and Sonic. Each is a UUPS proxy, so it is stable across upgrades. The router on a chain is the address an ERC-20 approval is granted to there, and it is what /v1/quote returns as spender; /v1/chains names it per chain as router. Read it from the quote rather than pinning it here: a quote that ever named a different spender is the one that is right, and code that trusts this page instead would approve the wrong contract.

/v1/chains names each chain's gas coin as nativeSymbol. On Arc it is USDC, a token: name it by its contract address, never by the native placeholder (nativeIsToken is true there).

100+ venues are indexed, and a quote names the ones it used in venues: Uniswap V2, V3 and V4 and their forks (SushiSwap, PancakeSwap, ShibaSwap, QuickSwap, Pangolin); the Solidly family and its concentrated pools (Aerodrome and Slipstream on Base, Velodrome on OP Mainnet); Algebra (Camelot on Arbitrum, QuickSwap V3 on Polygon, THENA on BNB Chain); Curve StableSwap and CryptoSwap; Balancer; WOOFi; Fluid; Liquidity Book (LFJ) on Avalanche. On the newest networks: Uniswap V3 and V4 and Velodrome's concentrated pools on Unichain; Uniswap V3 and V4, PancakeSwap V3 and Curve on Monad; HyperSwap, Hybra, KittenSwap, Project X, Ramses, Nest, HyperLynx, HyperTrade, UltraSolid, Upheaval and WOOFi on HyperEVM; Uniswap V2 and V3, Aero Lite and Archery on Arc; Uniswap V3, Fluid and Curve on Plasma; Velodrome Slipstream, Uniswap V3 and V4 and InkySwap on Ink; Uniswap V3 and V4 on World Chain; Kumbaya and Uniswap V3 and V4 on MegaETH; Etherex, Lynex, PancakeSwap V3 and Uniswap V3 and V4 on Linea; Velodrome Slipstream, Kyo, Sonex, QuickSwap and Uniswap V3 and V4 on Soneium; Uniswap V3, Curve, Swapr, SushiSwap V3, Balancer and sDAI on Gnosis; VVS and Obsidian on Cronos; and Shadow, SwapX, Uniswap V3, Equalizer, WAGMI, SpookySwap V3 and Beets on Sonic. A wrapper with a rate of its own (wstETH, sDAI, sUSDe and the like) is indexed as a venue too, so a route can step through one.

Behind those keys sit far fewer families of pool math: constant product, concentrated liquidity, Solidly stable and volatile, Curve StableSwap and CryptoSwap, Balancer weighted, WOOFi’s oracle pools and Fluid, and Liquidity Book bins. Uniswap V4, Slipstream and Algebra are keys rather than families: their curve is V3’s, so they reuse that tick walk, and what differs is where the state and the fee are read from.

V4 is routed like any other venue. It settles through the singleton’s unlock callback rather than a pool address, because a V4 pool does not have one since every pool lives inside a single PoolManager. The router implements that callback, so a V4 hop quotes and executes exactly as a V3 hop does.

includeUnexecutable adds the venues the router cannot settle to a quote, for price discovery only. Ekubo is one today: it is indexed and priced, and no router carries its settlement yet. A family is usually indexed before it is executable, and a quote should never be an offer we cannot honour, so the default leaves them out.

GET /v1/chains returns the live list with per-chain index freshness, and it never counts against your quota. See Chains & status.

What it does not do

  • It does not hold funds. There is no deposit, no custody and no account balance. You send the transaction from your own wallet.
  • It does not sign or broadcast. The API returns { to, data, value }; signing and sending stay entirely on your side.
  • It does not send the approval for you. We return the exact spender; the approve is yours to send. See Approvals.
  • It takes no cut of the swap. LCX charges nothing on a trade and captures no positive slippage: you pay for API calls, not for volume. An integrator that has registered a fee of its own on the router has it taken from the output and stated in the quote's fee block, which is zero for everyone else.
  • It executes only where a router is deployed. One is live on every chain in the table above, and routerDeployed on /v1/chains is the field to read. On a chain without one a quote comes back with spender: null and there is nothing to sign.

Where to go next

  • Quickstart gets you a priced route in about a minute, with a free key.
  • Quotes & execution is the model to have in your head before you write the integration.
  • API reference lists every endpoint and every field it returns.