For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ“–Overview

LiquidSwap is a multichain aggregator. It finds optimal swap routes across liquidity on supported chains, with built-in multi-hop routing, revenue sharing, and native token unwrapping.

Supported chains

Chain

chainId

HyperEVM

999

Robinhood Chain

4663

Pass chainId on route, tokens, token balances, liquidity sources, and pools requests.

Quick start

  1. Get a route β€” call GET https://api.liqd.ag/v2/route with tokenIn, tokenOut, amountIn, and chainId.

  2. Execute β€” send the returned calldata to the contract address in execution.to.

const route = await fetch(
  'https://api.liqd.ag/v2/route?tokenIn=0x555...&tokenOut=0xB8C...&amountIn=100&chainId=999'
).then(r => r.json());

const tx = await signer.sendTransaction({
  to: route.execution.to,
  data: route.execution.calldata,
});

That's it. No API keys, no registration, no rate limits.

Key features

  • No authentication β€” start calling endpoints immediately

  • No rate limits β€” scale without worrying about quotas or throttling

  • Multichain β€” same API across HyperEVM and Robinhood Chain via chainId

  • Multi-hop routing β€” set multiHop=true to route through intermediate tokens

  • Exact input or output β€” provide amountIn for exact input swaps, or amountOut for exact output

  • Native unwrapping β€” set unwrapNative=true to receive native HYPE (HyperEVM) or ETH (Robinhood Chain) instead of the wrapped token

Revenue sharing

LiquidSwap charges no forced fees for API usage. You choose your own fee structure:

  • Custom fees β€” set feeBps (up to 100 = 1%) and feeRecipient on route requests. You keep 97.5% of collected fees; 2.5% goes to protocol.

  • Positive slippage β€” when swaps execute better than quoted, 50% of positive slippage is captured. If feeRecipient is set, half goes to you and half to protocol. Set feeBps=0 with a feeRecipient to earn positive slippage without charging users.

  • Zero-fee option β€” omit feeBps and feeRecipient to operate completely fee-free.

API endpoints

Endpoint
Description

Find optimal swap routes with ready-to-use calldata

List liquidity sources and routerIndex values for a chain

Discover pools for a token pair

List tracked tokens with metadata

Get token balances for a wallet

Base URL: https://api.liqd.ag

Contracts

Chain
RouterV2

HyperEVM (999)

0x744489ee3d540777a66f2cf297479745e0852f7a

Robinhood Chain (4663)

0xfc020bBCe0365f56bbBb78Ce504cE2a2b24E0ae6

Always prefer the execution.to address from the route response. See Execution for full details.

Last updated