Skip to main content

How-To Guides

This section provides step-by-step instructions to help users complete specific tasks associated with developing on Stellar. These tasks can include instructions for goals related to writing contracts, interacting with contracts, building applications, using Stellar operations, setting up infrastructure, and more.

Contract Conventions

Analyzing smart contract cost and efficiency

Using __check_auth in interesting ways

Deploy a contract from installed Wasm bytecode using a deployer contract

Organize contract errors with an error enum type

Install and deploy a smart contract with code

Integrate Stellar Assets Contracts

Upgrading Wasm Bytecode for 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

Consume previously ingested 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

Prompt Freighter to sign transactions as a JS dapp developer

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

State Archival

Restore a contract using the JavaScript SDK

Restore archived contract data using the JavaScript SDK

Test TTL extension logic in Smart Contracts

Stellar Basics

Create an account

Send and receive payments

Follow received payments

Stellar 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 Stellar CLI

Restore archived contract data using the Stellar CLI

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 SDKs

simulateTransaction RPC method guide

Submit a transaction to Soroban RPC using the JavaScript SDK