{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"27c453fe-01ca-40d6-920b-6f7fdd9e0d7d","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 Target Amount Quote data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Lifi, pass parameters such as fromAddress, fromChain, fromToken, 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 لإعداد شاشة مراجعة المحفظة ومقارنة التقديرات. أرسل السلاسل والرموز وعنوان المرسل وtoAmount بالوحدات الأساسية مع خيارات التوجيه والانزلاق للحصول على الكميات والرسوم وبيانات المعاملة المعدة بصيغة JSON.","ja":"OpenAny REST で指定した受取数量の転送見積を取得し、ウォレット確認画面や見積比較に利用できます。送受信チェーン、トークン、送信者、最小単位の toAmount と任意の経路・スリッページ条件から、数量、手数料、未署名取引データを JSON で取得します。","zh":"通过 OpenAny REST 按指定目标接收数量请求转账报价，用于钱包确认界面与估算详情比较。传入来源及目标链、代币、发送地址和最小单位的 toAmount，可设置路由与滑点，获取数量估算、费用和待签交易数据 JSON。"},"effectContentHtml":"","executionMode":"sync","id":"e2e1ca46-e101-409f-9a0c-6f3ae5e3c370","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 will be received including all decimals (e.g. 1000000 for 1 USDC (6 decimals))","location":"query","name":"toAmount","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":"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 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":"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":"Skips the EVM step simulation of the generated transaction. Honoured only for integrators configured by LI.FI; for every other caller it is accepted for backward compatibility and ignored (the transaction is simulated as usual). When honoured, the gas limit comes from the tool estimate, a transaction that would revert is not rejected, and the step carries `stepSimulation.status: not-attempted` with `disabledReason: skip_requested`.","location":"query","name":"skipSimulation","nullable":false,"required":false,"type":"boolean"}],"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 Target Amount Quote API\u003c/h2\u003e\n\u003cp\u003eProvide fromChain, toChain, fromToken, toToken, fromAddress and toAmount. toAmount is the desired destination quantity; inspect the returned source amount estimate.\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, toAmount. Optional: toAddress, order, slippage, integrator, fee, referrer, allowBridges, allowExchanges, denyBridges, denyExchanges, preferBridges, preferExchanges, allowDestinationCall, maxPriceImpact, swapStepTimingStrategies, routeTimingStrategies, svmMaxSupportedTransactionVersion, svmPriorityFeeLevel, skipSimulation\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/toAmount \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode fromAddress=0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0 \\\n  --data-urlencode fromChain=1 \\\n  --data-urlencode fromToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \\\n  --data-urlencode toAmount=100000000 \\\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/e2e1ca46-e101-409f-9a0c-6f3ae5e3c370\"\u003ePublished LI.FI Target 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 toAmount use?\u003c/h3\u003e\n\u003cp\u003etoAmount 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-27c453fe?offering=e2e1ca46-e101-409f-9a0c-6f3ae5e3c370","providerId":"lifi","publicPath":"/v1/agent-apis/lifi/v1/quote/toAmount","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Documentation example (source abbreviated)","request":{"body":null,"headers":{},"path":{},"query":{"fromAddress":"0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0","fromChain":"1","fromToken":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","toAmount":"100000000","toChain":"10","toToken":"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},"response_body":{"action":{"fromAddress":"0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0","fromAmount":"100310989","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.010715365645379251,"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":"100310989","fromAmountUSD":"100.3346","gasCosts":[{}],"toAmount":"100049911","toAmountMin":"100049911","toAmountUSD":"100.1337","tool":"across"},"id":"8f4d6943-6df2-43bc-93bf-2b06ef7ee779:0","includedSteps":[{"action":{},"estimate":{},"id":"9df06ada-fb31-4d70-b480-afe0f4196d1d","tool":"feeCollection","toolDetails":{},"type":"protocol"}],"integrator":"lifi-api","recommendedSlippage":0.01101256322858362,"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":"0x9047983708275cf4eeab0fc2bb9347c7329b77500a59078f02e7fea6b0ec88e6","transactionRequest":{"chainId":1,"data":"0x1794958f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000","from":"0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0","gasLimit":"0x425e3","gasPrice":"0x2d4a467","to":"0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE","value":"0x0"},"type":"lifi"}}],"seoDescription":"Get LI.FI Target Amount Quote data via REST or MCP powered by Lifi. Pay per call, no subscription or proxies. Built to prepare quote review screens.","updatedAt":"2026-12-03T02:43:27.210Z","usageInstructionsHtml":""}}