🕵️Testing your Integration
Run test transactions on testnets.
Some bridges and exchanges have support for testnets. In these cases testnet transfers are also possible via our services.
The following guide will explain how to trigger a testnet transfer via our SDK or via our API.
The testnet integrations of many bridges are experimental and might bear issues. This does not reflect the performance of those bridges on the mainnet.
Requesting a Testnet Transfer via the LI.FI SDK
Setting up the SDK for testnet support
Testnets are only enabled on our staging environment. To be able to use it you have to set the correct apiUrl
when configuring the SDK:
The remaining setup is identical to the one described here.
Requesting a route
After you have configured the SDK, you can request a route between two testnet tokens:
The received routesResponse
can be executed via our SDK as described before.
If you need tokens in your wallet first, have a look at how Minting Tokens on Testnets works.
Possible testnet routes
The testnet implementation of bridges usually supports less tokens than the mainnet version.
Below is a list of possible transfers that can be made on testnets. It is incomplete and more transfers are possible, but it might help you get started.
ETH on Goerli to USDC on Goerli via Uniswap:
ETH on Goerli to WETH on Mumbai via Polygon Bridge:
Requesting a Testnet Transfer via the LI.FI API
Requesting a testnet quote works the same way as requesting mainnet quotes. The only important change is the request URL. Testnets are only enabled on our staging environment:
For more examples of testnet transfers, check out the listing above.
Last updated