Contract SDKs
Contract SDKs are used to build smart contracts that will be deployed to the Stellar network.
For Client and XDR SDKs, visit this page.
All SDKs are open-source; file a GitHub issue or pull request in the specific SDK repository if you have questions or suggestions.
Each SDK has its own source code and documentation. Learn how to use a specific SDK by referring to the documentation.
Soroban Rust SDK
The Rust SDK is maintained by SDF.
The soroban-sdk Rust crate contains the Soroban Rust SDK for building smart contracts for Stellar.
Report issues and share feedback about the soroban-sdk here.
Add soroban-sdk as a dependency by using crates.io to find the version of the most recent SDK release.
Add the following sections to the Cargo.toml to import the soroban-sdk and replace $VERSION with the released version.
[dependencies]
soroban-sdk = $VERSION
[dev_dependencies]
soroban-sdk = { version = $VERSION, features = ["testutils"] }
Solidity SDK
Hyperledger Solang compiler | Docs
The Solang compiler is maintained by the Hyperledger community.
Solang is an llvm-based compiler for Solidity that can target multiple blockchains, including Stellar.
The supported Solidity examples can be found within the Solang repository.
You can report issues and add requests for features to the Solang repository here.
Solang compiler also provides a Web IDE that you can use to compile, deploy and interact with Solidity contracts on Soroban. You can access the Web IDE here.
AssemblyScript SDK
The AssemblyScript SDK is maintained by dedicated community developers.
The as-soroban-sdk is an open source SDK that supports writing programs for the Soroban smart contract platform by using the AssemblyScript programming language.
The AssemblyScript Soroban SDK is maintained by dedicated community developer, Soneso. Report issues and share feedback here.
OpenZeppelin Contract and Extension Crates
OpenZeppelin Contracts are published in four crates:
- Stellar Macros: https://crates.io/crates/stellar-macros
- Stellar Access Control: https://crates.io/crates/stellar-access
- Stellar Contract Utilities: https://crates.io/crates/stellar-contract-utils
- Stellar Tokens: https://crates.io/crates/stellar-tokens
Refer to the OpenZeppelin for Stellar Contracts page for additional information.
Stellar Axelar Std Derive Rust Crate
Axelar has created a Rust crate with useful macros for Stellar smart contract development. Please see Rust Crate stellar_axelar_std_derive for Attribute Macros and Derive Macros, and additional information.