Welcome To The Soroban Playground

This IDE allows you to write, build, test, and deploy Soroban smart contracts directly in your browser.

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:

  1. Validates your Rust code syntax
  2. Checks for contract compatibility with Soroban SDK
  3. Generates optimized WASM bytecode
  4. 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