---
title: "POST /lifi/quote"
method: POST
path: "/lifi/quote"
---

# POST /lifi/quote

`POST /lifi/quote`

LiFi API compatibility endpoint for getting swap quotes. Accepts LiFi-formatted requests and returns LiFi-formatted responses.

## Request body

- LiFiQuoteRequest — LiFi API compatible quote request
  - `fromToken` string, required — Ethereum contract address (20 bytes) encoded as hexadecimal with 0x prefix
  - `toToken` string, required — Ethereum contract address (20 bytes) encoded as hexadecimal with 0x prefix
  - `fromAmount` string, required — Amount of an ERC20 token as a decimal string (no scientific notation)
  - `slippage` number, float — The slippage tolerance as a decimal fraction (e.g., 0.005 for 0.5%). Must be in interval [0..1].

## Response `200`

Successfully calculated swap route with LiFi-compatible response

- LiFiQuoteResponse — LiFi API compatible quote response
  - `fromAmount` string, required — Amount of an ERC20 token as a decimal string (no scientific notation)
  - `toAmount` string, required — Amount of an ERC20 token as a decimal string (no scientific notation)
  - `toAmountMin` string, required — Amount of an ERC20 token as a decimal string (no scientific notation)
  - `slippage` number, float, required — The applied slippage tolerance as a decimal fraction (e.g., 0.005 for 0.5%)
  - `approveToAddress` string — Ethereum contract address (20 bytes) encoded as hexadecimal with 0x prefix
  - `gasEstimation` integer, required — Estimated gas consumption for the swap
  - `transaction` LiFiTransaction, required — Transaction data for executing the swap
    - `to` string, required — Ethereum contract address (20 bytes) encoded as hexadecimal with 0x prefix
    - `value` string, required — Amount of an ERC20 token as a decimal string (no scientific notation)
    - `callData` string, required — Arbitrary byte data encoded as hexadecimal with 0x prefix

## Other responses

- `400` — Bad request due to invalid parameters
- `401` — Unauthorized access due to invalid or missing credentials
- `404` — No viable swap route found for the given parameters
- `500` — Internal server error

## Changes

- **2026-06-12** `ef3da6b1425b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sprintertech/apis/swap-by-blanc/changes/lifi/quote/post.md)

---

[API](https://skmtc.dev/sprintertech/apis/swap-by-blanc.md) · [All operations](https://skmtc.dev/sprintertech/apis/swap-by-blanc/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sprintertech/swap-by-blanc/revisions/ef3da6b1425b/schema)
