{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"247ea83d-1676-45b9-832e-9f1620bbfbd7","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"lifi","dataPlatformLogoUrl":"https://framerusercontent.com/images/qaMImANIDMfsz5uKFRTTXjZ1g4c.png","dataPlatformTranslations":{"ar":"LI.FI","ja":"LI.FI","zh":"LI.FI"},"dataProduct":"cross-chain-data","description":"Get LI.FI Gas Suggestion data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Lifi, configure supported query parameters and filters, and retrieve structured data including available, recommendation status explanation, amount, reported gas amount limit, and source-token funding estimate for explain destination gas needs, and handle unavailable suggestions.","descriptionTranslations":{"ar":"اطلب اقتراح تمويل الغاز لسلسلة عبر OpenAny REST لشرح احتياجات الغاز في واجهات إعداد التحويل. ضع السلسلة المطلوبة في المسار وأضف سلسلة ورمز المصدر اختياريا لاستلام التوفر والكميات الموصى بها والحدود وبيانات الرمز وتقدير التمويل بصيغة JSON مع فحص available أولا.","ja":"OpenAny REST でチェーンのガス補充見積を取得し、転送準備画面で必要量を説明できます。パスに対象チェーン、任意で送信元チェーンとトークンを指定し、可用性、推奨量、上限、トークン情報、送信元見積を JSON で取得し、available を確認します。","zh":"通过 OpenAny REST 查询某链的 Gas 补充建议，为转账准备界面说明目标链 Gas 需求。路径中指定目标链，可补充来源链和代币，获取可用性、建议量、上限、代币信息及来源资金估算 JSON，展示建议前先检查可用标记。"},"effectContentHtml":"","executionMode":"sync","id":"90eb52d1-36a8-492d-ba4a-08166a82eb59","includedContentHtml":"","inputs":[{"description":"Chain from which gas prices should be shown (can be a chain id or a chain key)","location":"path","name":"chain","nullable":false,"required":true,"type":"string"},{"description":"If `fromChain` and `fromToken` are specified, the result will contain information about how much `fromToken` amount the user has to send to receive the suggested gas amount on the requested chain.","location":"query","name":"fromChain","nullable":false,"required":false,"type":"string"},{"description":"If `fromChain` and `fromToken` are specified, the result will contain information about how much `fromToken` amount the user has to send to receive the suggested gas amount on the requested chain.","location":"query","name":"fromToken","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://framerusercontent.com/images/qaMImANIDMfsz5uKFRTTXjZ1g4c.png","method":"GET","name":"LI.FI — Get a gas suggestion for the specified chain","nameTranslations":{"ar":"LI.FI — الحصول على اقتراح للغاز للسلسلة المحددة","ja":"LI.FI — 指定されたチェーンのガス推奨量を取得","zh":"LI.FI — 获取指定链的 gas 建议"},"overviewHtml":"\u003ch2\u003eLI.FI Gas Suggestion API\u003c/h2\u003e\n\u003cp\u003eThe required chain path parameter accepts a chain ID or key. fromChain and fromToken together request a source-token funding estimate; available and message describe whether the suggestion is usable.\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: chain. Optional: fromChain, fromToken\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003elifi · LI.FI — Get a gas suggestion for the specified chain\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\u003eExplain destination gas needs\u003c/strong\u003e: Display recommendations only when available.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eHandle unavailable suggestions\u003c/strong\u003e: Show the returned message rather than treating partial values as a successful result.\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\u003eavailable\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWhether a usable gas recommendation is available\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003emessage\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRecommendation status explanation\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erecommended.amount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRecommended native-token amount in base units\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erecommended.token\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eToken metadata for the recommendation\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003elimit.amount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported gas amount limit\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efromAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource-token funding estimate\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/gas/suggestion/10 \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34;\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/90eb52d1-36a8-492d-ba4a-08166a82eb59\"\u003ePublished LI.FI Gas Suggestion 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\u003eWhich chain goes in the path?\u003c/h3\u003e\n\u003cp\u003eUse the chain for which gas funding is being suggested.\u003c/p\u003e\n\u003ch3\u003eWhen should I provide fromChain and fromToken?\u003c/h3\u003e\n\u003cp\u003eProvide both when requesting an estimate of the source token needed for the suggested gas amount.\u003c/p\u003e\n\u003ch3\u003eCan recommended contain values when available is false?\u003c/h3\u003e\n\u003cp\u003eYes. Check available and message before treating any recommendation as usable.\u003c/p\u003e\n\u003ch3\u003eDoes this top up gas automatically?\u003c/h3\u003e\n\u003cp\u003eNo. It returns suggestion data rather than signing or sending a funding transaction.\u003c/p\u003e\n\u003ch3\u003eAre token amounts display amounts?\u003c/h3\u003e\n\u003cp\u003eRead token decimals; base-unit amounts need precise conversion for display.\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-gas-suggestion-for-the-specified-chain?offering=90eb52d1-36a8-492d-ba4a-08166a82eb59","providerId":"lifi","publicPath":"/v1/agent-apis/lifi/v1/gas/suggestion/{chain}","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":null,"headers":{},"path":{"chain":"10"},"query":{}},"response_body":{"available":false,"fromAmount":"0","limit":{"amount":"22837202716713635","amountUsd":"50.0000","token":{"address":"0x0000000000000000000000000000000000000000","chainId":10,"coinKey":"ETH","decimals":18,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png","name":"ETH","priceUSD":"2189.41","symbol":"ETH"}},"message":"Failed to calculate gas recommendation","recommended":{"amount":"9134881086685","amountUsd":"0.0200","token":{"address":"0x0000000000000000000000000000000000000000","chainId":10,"coinKey":"ETH","decimals":18,"logoURI":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png","name":"ETH","priceUSD":"2189.41","symbol":"ETH"}}}}],"seoDescription":"Get LI.FI Gas Suggestion data via REST or MCP powered by Lifi. Pay per call, no subscription. Built for explain destination gas needs workflows.","updatedAt":"2026-12-03T02:43:26.938Z","usageInstructionsHtml":""}}