Skip to main content
The call sdk action works very similarly and allows you to perform any tx cross-chain

Before executing a bridge

Before executing a bridge, you should verify that the user has enough balance on the Origin chain to cover the the full bridge amount + fees. Check out fetching a quote for more details on calculating the fees.

Executing a bridge

Use the sdk’s bridge action to execute the bridge and automatically handle the execution of steps.
All you have to do now is use the onProgress callback to update your UI with the current step and status. The currentStep has an action and description that can be helpful to display in your UI. Each stepItem also has an array of txHashes that you can use to link users to their transactions on a blockexplorer. Once all stepsItems have a status of complete, the bridge was completed successfully and you you can show a success screen in your UI. ✅