All Collections
Advanced
How do I create a prefilled Li.Fi Bridge link?
How do I create a prefilled Li.Fi Bridge link?

Instructions for a prefilled link to Swap and Bridge in the Superfluid Dashboard

Vijay avatar
Written by Vijay
Updated over a week ago

If you want to send your friends or users a prefilled link to swap into or out of a Super Token in the Dashboard, you can do so by adding query parameters to the link.

A fully prefilled Li.Fi Bridge Widget link looks as follows:

https://app.superfluid.finance/bridge?fromChain=137&toChain=10&fromToken=0xCAa7349CEA390F89641fe306D93591f87595dc1F&toToken=0x7f5c764cbc14f9669b88837ca1490cca17c31607&fromAmount=100

You may tweak the parameters as follows:

fromChain: The chainId of the source chain. e.g. 137 for Polygon

toChain: The chainId of the destination chain. e.g. 10 for Optimism

fromToken: The token hex address of the source token

toToken: The token hex address of the destination token

fromAmount: The amount of tokens to be swapped

Did this answer your question?