Soroban SDK supports writing programs for the Soroban smart contract platform.

Docs

See soroban.stellar.org for documentation.

Examples

```rust use soroban_sdk::{contractimpl, vec, BytesN, Env, Symbol, Vec};

pub struct HelloContract;

[contractimpl]

impl HelloContract { pub fn hello(env: Env, to: Symbol) -> Vec { vec![&env, Symbol::short("Hello"), to] } }

[test]

fn test() { let env = Env::default(); let contractid = env.registercontract(None, HelloContract); let client = HelloContractClient::new(&env, &contract_id);

let words = client.hello(&Symbol::short("Dev"));

assert_eq!(words, vec![&env, Symbol::short("Hello"), Symbol::short("Dev"),]);

} ```

More examples are available at https://soroban.stellar.org/docs/category/examples.