Welcome To The Soroban Playground
Getting Started
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/mainnet
 - Explore - Explore & Invoke contract functions
 
Test Your Smart Contract
In this section, you can run "cargo test" to check your smart contract functionality before deployment.
                  
                  Note cargo test can take a couple of minutes to run
                
                
                  
                  Large test suites may timeout, use stellar-cli for production testing
                
              Build
Compile Your Contract to WASM
Click the button below to compile your Rust smart contract to WebAssembly (WASM).
                  
                  Compilation might take up to 60 seconds depending on the complexity of your contract.
                
                
                  
                  The compiled WASM file will automatically download when compilation is successful.
                
              This will transform your code into a binary format that can be executed on the Soroban platform.
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 Soroban network.
Deployment Tips
                  
                  Deploying a contract requires XLM to cover network fees.
                
                
                  
                  Consider deploying to testnet first, when you generate a wallet it will automatically receive testnet XLM.
                
                
                  
                  Friends don't let friends test in production
                
              Contract Explorer
In this section you can explore and call Soroban contract functions using your web browser