The Soroban Playground
Use the editor above to write your Rust smart contract. The template already includes a basic contract structure to help you get started.
Navigate between different stages of development using the icons in the left sidebar:
- Create - Write your smart contract code
- Build - Compile your contract to WASM
- Test - Run unit tests and debug contract
- Deploy - Deploy WASM file to testnet/futurenet/mainnet
- Explore - Explore & Invoke contract functions
Settings
Manage editor storage, sharing, and layout preferences.
Share Code Link
Paste a GitHub or Gist URL to generate a shareable link to your code.
Reset Editor
Clear locally stored files and wallets and restore the default template.
Test Your Smart Contract
In this section, you can run "cargo test" to check your smart contract functionality before deployment.
Build
Compile Your Contract to WASM
Click the button below to compile your Rust smart contract to WebAssembly (WASM).
This will transform your code into a binary format that can be deployed on the Stellar Network.
The compilation process:
- Validates your Rust code syntax
- Checks for contract compatibility with Soroban SDK
- Generates optimized WASM bytecode
- Provides a downloadable WASM file when successful
Deploy
Deploy your compiled WASM file to the Stellar network.
Deployment Tips
Contract Explorer
In this section you can explore and call Stellar contract functions using your web browser