FAQs
How can I ensure users only sign on the source chain while allowing the bridge to complete the swap on the destination chain?
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 switchingallowDestinationCall: 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?
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?
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?
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?
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?
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?
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?
What is the default sorting behavior if the order parameter is not provided?
If order
is not set, the default is CHEAPEST
.