Skip to main content
This page provides concise, action-oriented documentation for the core LI.FI API endpoints that AI agents need.

Base URL

All endpoints use this base URL. Authentication via x-lifi-api-key header is optional but recommended for higher rate limits.

GET /chains

Action: Retrieve all supported blockchain networks.

Request

Parameters

Response

Key Fields


GET /tokens

Action: Retrieve tokens available on specified chains.

Request

Parameters

Response

Key Fields

Native Token Address

Native tokens (ETH, MATIC, etc.) use: 0x0000000000000000000000000000000000000000

GET /quote

Action: Get a transfer quote with ready-to-execute transaction data.

Request

Parameters

Response

See the Five-Call Recipe for the complete untruncated response.

Key Fields

Constraints

  • fromAmount must be in smallest unit (e.g., 6 decimals for USDC)
  • slippage is a decimal (0.005 = 0.5%, not 0.5)
  • Quote expires after ~60 seconds

GET /status

Action: Check the status of a cross-chain transfer.

Request

Parameters

Only txHash is required. Providing fromChain significantly speeds up the response.

Response

Key Fields

Status Values


POST /advanced/routes

Action: Get multiple route options for a transfer.

Request

Parameters (JSON Body)

Response

When to Use

  • Need multiple route options
  • User wants to compare bridges
  • Complex multi-hop transfers

POST /advanced/stepTransaction

Action: Get transaction data for a specific route step.

Request

Parameters

Response

Returns the step with transactionRequest populated.

When to Use

After /advanced/routes to get transaction data for each step.

GET /connections

Action: Get all possible token connections between two chains.

Request

Parameters

Response

Key Fields

When to Use

  • Check if a route is possible before quoting
  • Discover available destination tokens
  • Build token selection UI

GET /tools

Action: Get available bridges and exchanges.

Request

Response

Key Fields

When to Use

  • Filter routes by specific bridges/exchanges
  • Show available tools to users
  • Validate bridge/exchange selection

Quick Reference