Execute a Transfer
Once you have selected a transfer route, you can start the cross-chain transfer.
If you don't already have a transfer route, follow these steps.
Start a transfer
Use the same transfer parameters you used when finding a route. This will handle the entire transfer process for you, including prompting the wallet for any required actions.
Receive status updates
Use these events to update your UI with helpful information for your users.
Cancel a Transfer
You may want to cancel a transfer if the user rejects a wallet connection or network switch. To do so, call cancelTransfer
with the transfer ID.