- @debridge-finance/solana-contracts-client
- @debridge-finance/solana-utils
- @coral-xyz/anchor
- @solana/web3.js
Cross-Chain Calls
Sending Cross-Chain Messages
Sending cross-chain messages from Solana using deBridge programs.
To streamline communication with deBridge programs on the Solana blockchain, the debridge-solana-sdk has been developed. This Rust SDK allows for easy and efficient connection to the deBridge infrastructure, which enables decentralized transfers of messages and value between different supported blockchains.
To start using our sdk, add it to dependencies by cargo:
If you use the Anchor framework, then your program calling for a deBridge send might look like this:
You can use any account in your logic. However, the remaining accounts you pass on will have to be created by the client. Our SDK provides an
example of how to use the TypeScript library. For
this example it is:
The dependency packages that are used: