Skip to main content

How-To Guides

The page lists all guides we have available for Soroban. Simply put, a "guide" is a short, bite-sized example that details how to accomplish a specific task. These guides are focused on a single topic, and are limited in scope.

State Archival

Restore a contract using the JavaScript SDK

Restore archived contract data using the JavaScript SDK

Soroban CLI

Deploy a Contract from Installed Wasm Bytecode

Deploy the Stellar Asset Contract for a Stellar Asset

Extend a deployed contract instance's TTL

Extend a deployed contract's storage entry TTL

Extend a deployed contract's Wasm code TTL

Install and Deploy a Smart Contract

Install Wasm Bytecode

Restore an archived contract using the Soroban CLI

Restore archived contract data using the Soroban CLI

Conventions

Organize contract errors with an error enum type

Upgrade the Wasm bytecode of a deployed contract

Write metadata for your contract.

Dapp Development

Use Docker to build and run dapps

Initialize a dapp using scripts

Create a frontend for your dapp using React

Events

Ingest events published from a contract

Publish events from a Rust contract

Freighter Wallet

Connect to the Testnet

Enable Soroban tokens

Integrate Freighter with a React dapp

As a dapp developer, prompt Freighter to sign transactions

Send Soroban token payments

Sign authorization entries

Sign Soroban XDRs

RPC

Generate ledger key parameters with a symbol key using the Python SDK

Retrieve a contract code ledger entry using the JavaScript SDK

Retrieve a contract code ledger entry using the Python SDK

Storage

Use instance storage in a contract

Use persistent storage in a contract

Use temporary storage in a contract

Testing

Implement basic tests for a contract

Test authorized contract invocations

Transactions

Invoke a contract function in a Stellar transaction using JavaScript

Submit a transaction to Soroban RPC using the JavaScript SDK