Testing your integration
Testnets
We do not support testnets (e.g., Sepolia) as we have limited user engagement with them.
We recommend using mainnets like Gnosis and Polygon for the following reasons:
Limited User Engagement: There are few users actively utilizing testnets
Maintenance Issues: Testnets often experience interruptions, especially during significant updates
Insufficient Liquidity: Tokens on testnets generally lack the liquidity needed for thorough testing
Cost-Effectiveness: Testing on mainnets like Gnosis and Polygon is more reliable and cost-effective
Simulating Interactions with Tenderly
You can simulate your interactions with LI.FI using Tenderly. Below are two methods to perform simulations
Using the Tenderly Interface
Create a Tenderly Account:
Sign up for a Tenderly account
Create a new project in the Tenderly dashboard
Access the Simulation Feature:
Navigate to the Simulation Feature tab
Fill in the required fields using data extracted from the quote response. Map the necessary fields from the returned
transactionRequest
object
Run the Simulation:
Click Run Simulation to execute the transaction simulation
Code Implementation
This option involves using the Tenderly API for simulations
Prerequisites
Tenderly Account: Ensure you have an account and project set up on Tenderly
Tenderly API Key: Obtain your API key from the Tenderly dashboard
Optional: Install the Tenderly CLI:
Example Code
The following example demonstrates how to implement a transaction simulation using the Tenderly API with Node.js
Network ID: Ensure you're using the correct network ID
Tenderly Headers: Include your X-Access-Key
in the API request headers
Last updated