# LI.FI — Get a quote for a token transfer

Get LI.FI Input Amount Quote data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Lifi, pass parameters such as fromAddress, fromAmount, fromChain, and retrieve structured data including estimated destination token amount, to amount min, estimated network gas costs, quoted transfer fee components, and prepared transaction data to prepare quote review screens, and separate preparation from execution.

Documentation: https://openany.si/lifi/lifi-li-fi-get-a-quote-for-a-token-transfer/d7d964af-a64f-4d47-8126-fc75f2b34561/
API ID: d7d964af-a64f-4d47-8126-fc75f2b34561
Provider: lifi
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/lifi/v1/quote
Page update time: 2026-12-03T02:43:27.545Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:27.139Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## LI.FI Input Amount Quote API

Provide fromChain, toChain, fromToken, toToken, fromAddress and fromAmount. fromAmount fixes the source quantity; inspect estimate.toAmount and estimate.toAmountMin for destination estimates.

## What You Can Build

- **Prepare quote review screens**: Display the chain, tokens, amount and fee estimates together.
- **Separate preparation from execution**: Inspect transactionRequest before any independent signing flow.

## Returned Data

| Field | Meaning |
| --- | --- |
| `action.fromAmount` | Source token amount in base units |
| `estimate.toAmount` | Estimated destination token amount |
| `estimate.toAmountMin` | Minimum destination amount for the quoted step |
| `estimate.gasCosts` | Estimated network gas costs |
| `estimate.feeCosts` | Quoted transfer fee components |
| `transactionRequest` | Prepared transaction data |
| `stepSimulation` | Transaction simulation metadata |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LI.FI — Get a quote for a token transfer request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "fromChain": {
          "type": "string",
          "description": "The sending chain. Can be the chain id or chain key"
        },
        "toChain": {
          "type": "string",
          "description": "The receiving chain. Can be the chain id or chain key"
        },
        "fromToken": {
          "type": "string",
          "description": "The token that should be transferred. Can be the address or the symbol"
        },
        "toToken": {
          "type": "string",
          "description": "The token that should be transferred to. Can be the address or the symbol"
        },
        "fromAddress": {
          "type": "string",
          "description": "The sending wallet address"
        },
        "toAddress": {
          "type": "string",
          "description": "The receiving wallet address. If none is provided, the fromAddress will be used"
        },
        "fromAmount": {
          "type": "string",
          "description": "The amount that should be sent including all decimals (e.g. 1000000 for 1 USDC (6 decimals))"
        },
        "order": {
          "type": "string",
          "description": "Which kind of route should be preferred **FASTEST**: This sorting criterion prioritizes routes with the shortest estimated execution time. Users who value speed and want their transactions to be completed as quickly as possible should choose the fastest routes. **CHEAPEST**: This criterion focuses on minimizing the cost of the transaction, whether in token amount or USD amount (USD amount minus gas cost). Users looking for the most economical option should choose the cheapest routes.",
          "enum": [
            "FASTEST",
            "CHEAPEST"
          ]
        },
        "slippage": {
          "type": "number",
          "description": "The maximum allowed slippage for the transaction as a decimal value. 0.005 represents 0.5%.",
          "minimum": 0,
          "maximum": 1
        },
        "integrator": {
          "type": "string",
          "description": "A string containing tracking information about the integrator of the API"
        },
        "fee": {
          "type": "number",
          "description": "The percent of the integrator's fee that is taken from every transaction. 0.02 represents 2%. The maximum fee amount should be less than 100%.",
          "minimum": 0,
          "maximum": 1
        },
        "referrer": {
          "type": "string",
          "description": "A string containing tracking information about the referrer of the integrator"
        },
        "allowBridges": {
          "type": "array",
          "description": "List of bridges that are allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. Also values `all`, `none`, `default` and `[]` are acceptable and mean all tools of the current type (`all`), no tools (for `none` and `[]` cases) and default tool's settings on the current stage.",
          "items": {
            "type": "string"
          }
        },
        "allowExchanges": {
          "type": "array",
          "description": "List of exchanges that are allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. Also values `all`, `none`, `default` and `[]` are acceptable and mean all tools of the current type (`all`), no tools (for `none` and `[]` cases) and default tool's settings on the current stage.",
          "items": {
            "type": "string"
          }
        },
        "denyBridges": {
          "type": "array",
          "description": "List of bridges that are not allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. Also values `all`, `none`, `default` and `[]` are acceptable and mean all tools of the current type (`all`), no tools (for `none` and `[]` cases) and default tool's settings on the current stage.",
          "items": {
            "type": "string"
          }
        },
        "denyExchanges": {
          "type": "array",
          "description": "List of exchanges that are not allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. Also values `all`, `none`, `default` and `[]` are acceptable and mean all tools of the current type (`all`), no tools (for `none` and `[]` cases) and default tool's settings on the current stage.",
          "items": {
            "type": "string"
          }
        },
        "denyPools": {
          "type": "array",
          "description": "One to 100 AMM pool or Solana venue identifiers to exclude from routing. Repeat the query parameter for multiple entries. Each entry is a non-zero Uniswap V2/V3 pool address (`0x` + 40 hex), a Uniswap V4 composite `-` where `poolId` is a 32-byte hex string (`0x` + 64 hex), or a Solana venue program ID (base58), which excludes every pool of that venue. Identifiers of other chains are rejected; individual Solana pool addresses are not supported. Only some exchanges can exclude pools: EVM pool entries restrict swaps on every chain except Solana to the `fly` exchange, and Solana program IDs restrict swaps on Solana to `jupiter`, `titan` and `okx`. Swaps on a chain with no matching entries are not restricted.",
          "items": {
            "type": "string"
          }
        },
        "preferBridges": {
          "type": "array",
          "description": "List of bridges that should be preferred for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. Also values `all`, `none`, `default` and `[]` are acceptable and mean all tools of the current type (`all`), no tools (for `none` and `[]` cases) and default tool's settings on the current stage.",
          "items": {
            "type": "string"
          }
        },
        "preferExchanges": {
          "type": "array",
          "description": "List of exchanges that should be preferred for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. Also values `all`, `none`, `default` and `[]` are acceptable and mean all tools of the current type (`all`), no tools (for `none` and `[]` cases) and default tool's settings on the current stage.",
          "items": {
            "type": "string"
          }
        },
        "allowDestinationCall": {
          "type": "boolean",
          "description": "Whether swaps or other contract calls should be allowed as part of the destination transaction of a bridge transfer. Separate swap transactions on the destination chain are not affected by this flag. By default, parameter is `true`."
        },
        "fromAmountForGas": {
          "type": "string",
          "description": "The amount of the token to convert to gas on the destination side."
        },
        "maxPriceImpact": {
          "type": "number",
          "description": "The price impact threshold above which routes are hidden. As an example, one should specify 0.15 (15%) to hide routes with more than 15% price impact. The default is 10%."
        },
        "swapStepTimingStrategies": {
          "type": "array",
          "description": "Timing setting to wait for a certain amount of swap rates. In the format `minWaitTime-${minWaitTimeMs}-${startingExpectedResults}-${reduceEveryMs}`. Please check [docs.li.fi](https://docs.li.fi) for more details.",
          "items": {
            "type": "string"
          }
        },
        "routeTimingStrategies": {
          "type": "array",
          "description": "Timing setting to wait for a certain amount of routes to be generated before chosing the best one. In the format `minWaitTime-${minWaitTimeMs}-${startingExpectedResults}-${reduceEveryMs}`. Please check [docs.li.fi](https://docs.li.fi) for more details.",
          "items": {
            "type": "string"
          }
        },
        "skipSimulation": {
          "type": "boolean",
          "description": "Parameter to skip transaction simulation. The quote will be returned faster but the transaction gas limit won't be accurate."
        },
        "preset": {
          "type": "string",
          "description": "Pre-configured routing optimization preset. The preset value `stablecoin` is supported for requesting swap and/or bridging operations involving stablecoin tokens. Each preset provides optimized default settings for slippage, price impact, and tool preferences that can be overridden by custom configuration parameters set in the request.",
          "minLength": 1,
          "maxLength": 50
        },
        "svmMaxSupportedTransactionVersion": {
          "type": [
            "number",
            "null"
          ],
          "description": "Maximum Solana transaction version the client can sign. Defaults to 0; omission or null uses v0. Set to 1 to allow V1 where enabled for the environment. Jito requests always use v0. Size overflow may fall back to v0. Read transactionRequest.svmTransactionVersion for the version actually built. Ignored for source chains other than Solana.",
          "enum": [
            0,
            1,
            null
          ]
        },
        "svmPriorityFeeLevel": {
          "type": "string",
          "description": "Priority fee level for Solana Virtual Machine (SVM) transactions.",
          "enum": [
            "NORMAL",
            "FAST",
            "ULTRA"
          ]
        },
        "slippageScope": {
          "type": "string",
          "description": "Scope of `slippage`. `step` (default, same as omitted): `slippage` applies to every step and `toAmountMin` combines the steps' minimums. `route`: `slippage` is the budget for the whole route, `toAmountMin` is one floor, `ceil(expected output × (1 − slippage))`, that the returned transaction enforces, and the response carries a `routeSlippage` commitment. Supported for EVM routes with at most one swap: a swap on one chain, or a bridge that delivers to the recipient with or without one swap before it. Other routes are refused with `ROUTE_SLIPPAGE_UNSUPPORTED` instead of falling back to step scope. When `slippage` is omitted, the budget is the default slippage. See [Route-wide Slippage](/guides/route-wide-slippage).",
          "enum": [
            "step",
            "route"
          ]
        }
      },
      "required": [
        "fromChain",
        "toChain",
        "fromToken",
        "toToken",
        "fromAddress",
        "fromAmount"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "fromAddress": {
          "type": "string"
        },
        "fromAmount": {
          "type": "string"
        },
        "fromChainId": {
          "type": "integer"
        },
        "fromToken": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string"
            },
            "chainId": {
              "type": "integer"
            },
            "coinKey": {
              "type": "string"
            },
            "decimals": {
              "type": "integer"
            },
            "logoURI": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "priceUSD": {
              "type": "string"
            },
            "symbol": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {}
            },
            "verificationStatus": {
              "type": "string"
            },
            "verificationStatusBreakdown": {
              "type": "array",
              "items": {}
            }
          }
        },
        "slippage": {
          "type": "number"
        },
        "toAddress": {
          "type": "string"
        },
        "toChainId": {
          "type": "integer"
        },
        "toToken": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string"
            },
            "chainId": {
              "type": "integer"
            },
            "coinKey": {
              "type": "string"
            },
            "decimals": {
              "type": "integer"
            },
            "logoURI": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "priceUSD": {
              "type": "string"
            },
            "symbol": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {}
            },
            "verificationStatus": {
              "type": "string"
            },
            "verificationStatusBreakdown": {
              "type": "array",
              "items": {}
            }
          }
        }
      }
    },
    "estimate": {
      "type": "object",
      "properties": {
        "approvalAddress": {
          "type": "string"
        },
        "executionDuration": {
          "type": "integer"
        },
        "feeCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        },
        "fromAmount": {
          "type": "string"
        },
        "fromAmountUSD": {
          "type": "string"
        },
        "gasCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        },
        "toAmount": {
          "type": "string"
        },
        "toAmountMin": {
          "type": "string"
        },
        "toAmountUSD": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      }
    },
    "id": {
      "type": "string"
    },
    "includedSteps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "action": {
            "type": "object",
            "properties": {}
          },
          "estimate": {
            "type": "object",
            "properties": {}
          },
          "id": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "toolDetails": {
            "type": "object",
            "properties": {}
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "integrator": {
      "type": "string"
    },
    "recommendedSlippage": {
      "type": "number"
    },
    "stepSimulation": {
      "type": "object",
      "properties": {
        "gasSource": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "tool": {
      "type": "string"
    },
    "toolDetails": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "logoURI": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "transactionId": {
      "type": "string"
    },
    "transactionRequest": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "integer"
        },
        "data": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "gasLimit": {
          "type": "string"
        },
        "gasPrice": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/lifi/v1/quote?fromAddress=0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0&fromAmount=100000000&fromChain=1&fromToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&toChain=10&toToken=0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "action": {
    "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
    "fromAmount": "100000000",
    "fromChainId": 1,
    "fromToken": {
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "chainId": 1,
      "coinKey": "USDC",
      "decimals": 6,
      "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6",
      "name": "USD Coin",
      "priceUSD": "1.0002350525",
      "symbol": "USDC",
      "tags": [],
      "verificationStatus": "verified",
      "verificationStatusBreakdown": []
    },
    "slippage": 0.010701365645379253,
    "toAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
    "toChainId": 10,
    "toToken": {
      "address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "chainId": 10,
      "coinKey": "USDC",
      "decimals": 6,
      "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6",
      "name": "USD Coin",
      "priceUSD": "1.0008373187",
      "symbol": "USDC",
      "tags": [],
      "verificationStatus": "verified",
      "verificationStatusBreakdown": []
    }
  },
  "estimate": {
    "approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
    "executionDuration": 2,
    "feeCosts": [
      {}
    ],
    "fromAmount": "100000000",
    "fromAmountUSD": "100.0235",
    "gasCosts": [
      {}
    ],
    "toAmount": "99739729",
    "toAmountMin": "99739729",
    "toAmountUSD": "99.8232",
    "tool": "across"
  },
  "id": "1823bb48-1821-45b1-8e7c-8f97d5698844:0",
  "includedSteps": [
    {
      "action": {},
      "estimate": {},
      "id": "3d3175b2-2e23-46bb-a62e-47f41b7c3e41",
      "tool": "feeCollection",
      "toolDetails": {},
      "type": "protocol"
    }
  ],
  "integrator": "lifi-api",
  "recommendedSlippage": 0.01099856322858362,
  "stepSimulation": {
    "gasSource": "simulation",
    "status": "success"
  },
  "tool": "across",
  "toolDetails": {
    "key": "across",
    "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/across.svg",
    "name": "AcrossV4"
  },
  "transactionId": "0x51d045f404866b9fc560f7806db5eecc183f0ad68409d563608198466803b33c",
  "transactionRequest": {
    "chainId": 1,
    "data": "0x1794958f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000",
    "from": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
    "gasLimit": "0x425d3",
    "gasPrice": "0x2d4a467",
    "to": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
    "value": "0x0"
  },
  "type": "lifi"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What units does fromAmount use?
fromAmount includes token decimals: use base units and precise arithmetic, not a display-number float.

### What recipient is used if toAddress is omitted?
The contract defaults to fromAddress.

### How do I express slippage?
Use a decimal fraction, such as 0.005 for 0.5%.

### Can I select route preferences?
order supports FASTEST or CHEAPEST; supported allow, deny and prefer options further constrain routing.

### Does this send or sign a transaction?
No. This endpoint returns quote or transaction-construction data. Signing and broadcasting occur separately, and a returned object is not a completed transfer.

### Are network fees the OpenAny API call price?
No. Gas and transfer fee estimates describe the on-chain operation. Review the selected implementation pricing separately for the OpenAny request.

## Available implementations
- lifi: https://openany.si/lifi/lifi-li-fi-get-a-quote-for-a-token-transfer/d7d964af-a64f-4d47-8126-fc75f2b34561/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
