Skip to main content
This page documents the data types, formats, and validation rules for LI.FI API parameters and responses. Use this as a reference for building robust integrations.

Core Types

Chain

Represents a blockchain network.

Common Chain IDs


Token

Represents a cryptocurrency token.

Native Token Address

This address represents the native token (ETH, MATIC, etc.) on any EVM chain.

Common Token Decimals


Quote

Response from /quote endpoint.

Action

Describes what the quote will do.

Estimate

Cost and output estimates.

TransactionRequest

Ready-to-sign transaction data.

Converting Hex Values


Status

Transfer status response.

Status State Machine


Enums

Order

Route ordering preference.

ChainType

Blockchain architecture type.

Request Parameter Formats

Address Format

Amount Format

Amounts are always in the smallest unit (wei for ETH, 6 decimals for USDC):

Slippage Format

Decimal between 0 and 1:

Transaction Hash Format


Validation Rules

Quote Request


OpenAPI Reference

Full OpenAPI specification is available at:
  • Spec URL: https://li.quest/v1/docs-json
  • Swagger UI: https://apidocs.li.fi/
Download and parse the spec for complete schema definitions: