Skip to main content
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: For detailed examples, within the SDK there is an example-program project that allows you to see examples of various integrations and the corresponding client code for them. For example: