🔁LI.FI Link Parameterization
Use parameters to link to jumper.exchange and pre-determine the user's bridge- & swapping route.
Last updated
Use parameters to link to jumper.exchange and pre-determine the user's bridge- & swapping route.
Last updated
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.
https://jumper.exchange/?toChain=arb&toToken=0x539bde0d7dbd336b79148aa742883198bbf60342
Construction:
https://jumper.exchange/?
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 :)
Feedback? Join our Discord: https://discord.gg/lifi
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