Links
🔁

LI.FI Link Parameterization

Use parameters to link to transferto.xyz and pre-determine the user's bridge- & swapping route.
While you're working on integrating our SDK into your dApp, you can send a link with preset parameters of the desired token and desired chain for your users to swap to the right tokens.
Example: Swap from the user's current chain to MAGIC on Arbitrum.
Construction:
https://transferto.xyz/swap?
toChain=arb&
toToken=0x539bde0d7dbd336b79148aa742883198bbf60342
Similarly: Swap 100 MAGIC from Arbitrum to AAVE on Polygon
Note: Dear devs, you can either use a ChainId(1) or Chain Abbreviation (eth) as listed below :)

URL Parameters

Parameter
Description
Example
fromChain
Chain ID or Chain Abbreviation (If left empty, the user's current chain on Metamask will be selected)
arb
fromToken
Token Contract Address
0x539bde0d7dbd336b79148aa742883198bbf60342
toChain
Chain ID or Chain Abbreviation
pol
toToken
Token Contract Address
0xd6df932a45c0f255f85145f286ea0b292b21c90b
fromAmount
Float Value
250.5
​

Supported chains and their abbreviations

Feedback? Join our Discord: https://discord.gg/lifi​