LI.FI home pagelight logodark logo
  • Playground
  • Support
  • Get Started
  • Get Started
Home
Introduction
API Reference
SDK
Widget
Guides and FAQs
Changelog
Fees and Monetization
  • FAQs
Errors and Troubleshooting
  • Common issues
Integration Tips
  • API latency and optimization
  • Slippage and price impact
  • FAQs
Routing and Transaction Flow
  • Route availability
  • Token support and availability
Integration Tips

FAQs

How can I ensure users only sign on the source chain while allowing the bridge to complete the swap on the destination chain?

Set the following options:

  • allowSwitchChain: false to prevent automatic chain switching
  • allowDestinationCall: true to allow the bridge to complete the swap on the destination chain

Can I detect on-chain if a swap was made via a specific client using the LI.FI widget?

Yes. LI.FI emits on-chain events for all transfers and includes the integrator parameter. You can filter by this parameter to identify swaps from your client.

Can I send native ETH with a payable function via the /quote/contractCalls endpoint?

No. The /quote/contractCalls endpoint does not support sending native ETH.

Does the quote response include gas information?

Yes. The quote includes an estimated gas amount and transaction data.

How can we improve the response speed of /advanced/stepTransaction calls?

Add ?skipSimulation=true to the request. This skips on-chain simulation and improves response time.

How do I ensure the gaszip service works?

Include the fromAmountGas parameter in your request. This is required for gaszip to function.

When does LI.FI require a balance check during transaction generation?

  • On EVM: A balance check is required to generate transaction data.
  • On Bitcoin and Sui: A balance check is also performed during transaction generation.

What is the default sorting behavior if the order parameter is not provided?

If order is not set, the default is CHEAPEST.

Slippage and price impactRoute availability
LI.FI home pagelight logodark logo
xgithubwebsite

Company

CareersBrand AssetsAbout

Tools

LI.FI Explorer

Legal

Privacy PolicyTerms of ServiceImprint
xgithubwebsite
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.