function startBridgeTokensViaAnyswap(LiFiData memory _lifiData, AnyswapData calldata _anyswapData)
function swapAndStartBridgeTokensViaAnyswap( LiFiData memory _lifiData, LibSwap.SwapData[] calldata _swapData, AnyswapData memory _anyswapData)
_anyswapData
._anyswapData
you will need to fetch the router address for the chain ID you are bridging from. You can use the Anyswap API to do this.SwapData _swapData
parameter.LiFiData _lifiData
parameter.LiFiData
and the events we can emit can be found here.transactionRequest
. This request can directly be sent to your wallet to trigger the transaction.{YOUR_WALLET_ADDRESS}
with your real wallet address in the examples.