Embedded Cross-chain Actions
Last updated
Last updated
For developers wanting to enable users to seamlessly interact with your dApp or chain using assets from other chains, this guide provides technical instructions for bundling a bridge with user actions.
This solution is a great fit for apps on a single-chain or that want to expose core actions that users can execute with funds on other chains. It is a future-forward solution that aims to abstract bridging from end-users by making cross-chain actions so fast and cheap that it feels like a single-chain experience.
The Cross-chain Actions Integration Guidecontains technical instructions for bundling a bridge with user actions. The integration process is simple and consists of three steps:
Craft the message that is the set of transactions to execute on the destination
Request quotes from Across API, passing in the message
parameter defined above
Initiate a deposit by using data returned from Across API to call functions on Across smart contracts, specifying a message
(set of transactions to execute on the destination)
See Cross-chain Actions Integration Guide for recommended UI and UX patterns.