Cross-Chain Operations
Introduction
When using a Sherry Link to perform transfers from one chain to another, you are leveraging the power of cross-chain operations enabled by the Wormhole protocol. This advanced integration allows seamless communication and asset transfers between blockchains, breaking the barriers of isolated networks and enabling a unified decentralized experience.
Cross-chain operations involve multiple components working together: from relaying messages securely across networks to ensuring accurate gas estimations and handling potential discrepancies in asset pricing. These complexities are abstracted within Sherry Links, providing developers and users a streamlined way to interact with different blockchains without the need to manage intricate technical details.
In this section, we will delve into the core concepts behind cross-chain operations, explain how costs are calculated, and guide you through configuring and executing transfers effectively. Whether you are sending assets, invoking smart contract functions, or combining both, understanding these foundations will empower you to optimize your cross-chain workflows.
How it works
When sending cross-chain messages, it is important to consider certain aspects: the cost associated with the message, which includes executing a transaction on the destination blockchain, and any potential gas surplus that may occur.
- Gas Cost: Cross-chain transfers require additional gas to facilitate the communication between chains. When specifying Celo (or any supported chain) as the chains, the transaction includes a gas cost which is more than standard transfers due to the complexity of cross-chain operations.
- Excess Gas Refund: Any excess gas, after the transaction is completed, is refunded to the sender on the Avalanche chain, ensuring you only pay for what is necessary.