Skip to main content

Soroban Hello World

A minimal smart contract for Stellar’s Soroban platform written in Rust. A minimal smart contract for Stellar’s Soroban platform written in Rust.

Explanation

Soroban is Stellar’s smart contract platform. Contracts use no_std Rust and the soroban_sdk crate. Storage is accessed through env.storage(). The #[contract] and #[contractimpl] macros define the contract interface.

Code


Canonical knowledge ID: code-example:soroban-hello-world