{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"3e6987cf-cd05-42d1-9f60-3d199fd3d796","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"lifi","dataPlatformLogoUrl":"https://framerusercontent.com/images/qaMImANIDMfsz5uKFRTTXjZ1g4c.png","dataPlatformTranslations":{"ar":"lifi","ja":"lifi","zh":"lifi"},"dataProduct":"cross-chain-data","description":"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.","descriptionTranslations":{"ar":"اطلب عرض تحويل لكمية إدخال محددة عبر OpenAny REST لإعداد شاشة مراجعة المحفظة ومقارنة التقديرات. أرسل السلاسل والرموز وعنوان المرسل وfromAmount بالوحدات الأساسية مع خيارات التوجيه والانزلاق للحصول على الكميات والرسوم وبيانات المعاملة المعدة بصيغة JSON.","ja":"OpenAny REST で指定した入力数量の転送見積を取得し、ウォレット確認画面や見積比較に利用できます。送受信チェーン、トークン、送信者、最小単位の fromAmount と任意の経路・スリッページ条件から、数量、手数料、未署名取引データを JSON で取得します。","zh":"通过 OpenAny REST 按指定来源输入数量请求转账报价，用于钱包确认界面与估算详情比较。传入来源及目标链、代币、发送地址和最小单位的 fromAmount，可设置路由与滑点，获取数量估算、费用和待签交易数据 JSON。"},"effectContentHtml":"","executionMode":"sync","id":"d7d964af-a64f-4d47-8126-fc75f2b34561","includedContentHtml":"","inputs":[{"description":"The sending chain. Can be the chain id or chain key","location":"query","name":"fromChain","nullable":false,"required":true,"type":"string"},{"description":"The receiving chain. Can be the chain id or chain key","location":"query","name":"toChain","nullable":false,"required":true,"type":"string"},{"description":"The token that should be transferred. Can be the address or the symbol","location":"query","name":"fromToken","nullable":false,"required":true,"type":"string"},{"description":"The token that should be transferred to. Can be the address or the symbol","location":"query","name":"toToken","nullable":false,"required":true,"type":"string"},{"description":"The sending wallet address","location":"query","name":"fromAddress","nullable":false,"required":true,"type":"string"},{"description":"The receiving wallet address. If none is provided, the fromAddress will be used","location":"query","name":"toAddress","nullable":false,"required":false,"type":"string"},{"description":"The amount that should be sent including all decimals (e.g. 1000000 for 1 USDC (6 decimals))","location":"query","name":"fromAmount","nullable":false,"required":true,"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_values":["FASTEST","CHEAPEST"],"location":"query","name":"order","nullable":false,"required":false,"type":"string"},{"description":"The maximum allowed slippage for the transaction as a decimal value. 0.005 represents 0.5%.","location":"query","maximum":"1","minimum":"0","name":"slippage","nullable":false,"required":false,"type":"number"},{"description":"A string containing tracking information about the integrator of the API","location":"query","name":"integrator","nullable":false,"required":false,"type":"string"},{"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%.","location":"query","maximum":"1","minimum":"0","name":"fee","nullable":false,"required":false,"type":"number"},{"description":"A string containing tracking information about the referrer of the integrator","location":"query","name":"referrer","nullable":false,"required":false,"type":"string"},{"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.","item_type":"string","location":"query","name":"allowBridges","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"allowExchanges","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"denyBridges","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"denyExchanges","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"denyPools","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"preferBridges","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"preferExchanges","nullable":false,"required":false,"type":"array"},{"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`.","location":"query","name":"allowDestinationCall","nullable":false,"required":false,"type":"boolean"},{"description":"The amount of the token to convert to gas on the destination side.","location":"query","name":"fromAmountForGas","nullable":false,"required":false,"type":"string"},{"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%.","location":"query","name":"maxPriceImpact","nullable":false,"required":false,"type":"number"},{"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.","item_type":"string","location":"query","name":"swapStepTimingStrategies","nullable":false,"required":false,"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.","item_type":"string","location":"query","name":"routeTimingStrategies","nullable":false,"required":false,"type":"array"},{"description":"Parameter to skip transaction simulation. The quote will be returned faster but the transaction gas limit won't be accurate.","location":"query","name":"skipSimulation","nullable":false,"required":false,"type":"boolean"},{"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.","location":"query","max_length":50,"min_length":1,"name":"preset","nullable":false,"required":false,"type":"string"},{"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_values":["0","1"],"location":"query","name":"svmMaxSupportedTransactionVersion","nullable":true,"required":false,"type":"number"},{"description":"Priority fee level for Solana Virtual Machine (SVM) transactions.","enum_values":["NORMAL","FAST","ULTRA"],"location":"query","name":"svmPriorityFeeLevel","nullable":false,"required":false,"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_values":["step","route"],"location":"query","name":"slippageScope","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://framerusercontent.com/images/qaMImANIDMfsz5uKFRTTXjZ1g4c.png","method":"GET","name":"LI.FI — Get a quote for a token transfer","nameTranslations":{"ar":"LI.FI — الحصول على عرض سعر لتحويل رمز مميز","ja":"LI.FI — トークン転送の見積もりを取得","zh":"LI.FI — 获取代币转账报价"},"overviewHtml":"\u003ch2\u003eLI.FI Input Amount Quote API\u003c/h2\u003e\n\u003cp\u003eProvide fromChain, toChain, fromToken, toToken, fromAddress and fromAmount. fromAmount fixes the source quantity; inspect estimate.toAmount and estimate.toAmountMin for destination estimates.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired inputs: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount. Optional: toAddress, order, slippage, integrator, fee, referrer, allowBridges, allowExchanges, denyBridges, denyExchanges, denyPools, preferBridges, preferExchanges, allowDestinationCall, fromAmountForGas, maxPriceImpact, swapStepTimingStrategies, routeTimingStrategies, skipSimulation, preset, svmMaxSupportedTransactionVersion, svmPriorityFeeLevel, slippageScope\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003elifi · LI.FI — Get a quote for a token transfer\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003ePrepare quote review screens\u003c/strong\u003e: Display the chain, tokens, amount and fee estimates together.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSeparate preparation from execution\u003c/strong\u003e: Inspect transactionRequest before any independent signing flow.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eaction.fromAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource token amount in base units\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eestimate.toAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eEstimated destination token amount\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eestimate.toAmountMin\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMinimum destination amount for the quoted step\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eestimate.gasCosts\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eEstimated network gas costs\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eestimate.feeCosts\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eQuoted transfer fee components\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etransactionRequest\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePrepared transaction data\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003estepSimulation\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTransaction simulation metadata\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/lifi/v1/quote \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode fromAddress=0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0 \\\n  --data-urlencode fromAmount=100000000 \\\n  --data-urlencode fromChain=1 \\\n  --data-urlencode fromToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \\\n  --data-urlencode toChain=10 \\\n  --data-urlencode toToken=0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/d7d964af-a64f-4d47-8126-fc75f2b34561\"\u003ePublished LI.FI Input Amount Quote API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat units does fromAmount use?\u003c/h3\u003e\n\u003cp\u003efromAmount includes token decimals: use base units and precise arithmetic, not a display-number float.\u003c/p\u003e\n\u003ch3\u003eWhat recipient is used if toAddress is omitted?\u003c/h3\u003e\n\u003cp\u003eThe contract defaults to fromAddress.\u003c/p\u003e\n\u003ch3\u003eHow do I express slippage?\u003c/h3\u003e\n\u003cp\u003eUse a decimal fraction, such as 0.005 for 0.5%.\u003c/p\u003e\n\u003ch3\u003eCan I select route preferences?\u003c/h3\u003e\n\u003cp\u003eorder supports FASTEST or CHEAPEST; supported allow, deny and prefer options further constrain routing.\u003c/p\u003e\n\u003ch3\u003eDoes this send or sign a transaction?\u003c/h3\u003e\n\u003cp\u003eNo. This endpoint returns quote or transaction-construction data. Signing and broadcasting occur separately, and a returned object is not a completed transfer.\u003c/p\u003e\n\u003ch3\u003eAre network fees the OpenAny API call price?\u003c/h3\u003e\n\u003cp\u003eNo. Gas and transfer fee estimates describe the on-chain operation. Review the selected implementation pricing separately for the OpenAny request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/lifi/lifi-li-fi-check-the-status-of-a-cross-chain-transfer\"\u003eLI.FI — Check the status of a cross chain transfer\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/lifi/lifi-li-fi-fetch-all-known-tokens\"\u003eLI.FI — Fetch all known tokens\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/lifi/lifi-li-fi-fetch-information-about-a-token\"\u003eLI.FI — Fetch information about a Token\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/lifi/lifi-li-fi-get-a-quote-for-a-token-transfer?offering=d7d964af-a64f-4d47-8126-fc75f2b34561","providerId":"lifi","publicPath":"/v1/agent-apis/lifi/v1/quote","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Documentation example (source abbreviated)","request":{"body":null,"headers":{},"path":{},"query":{"fromAddress":"0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0","fromAmount":"100000000","fromChain":"1","fromToken":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","toChain":"10","toToken":"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},"response_body":{"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"}}],"seoDescription":"Get LI.FI Input Amount Quote data via REST or MCP powered by Lifi. Pay per call, no subscription. Structured JSON output with one OpenAny API key.","updatedAt":"2026-12-03T02:43:27.139Z","usageInstructionsHtml":""}}