soroban

Develop, test, and deploy Stellar Soroban smart contracts with Rust.

50|38|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/stellar/stellar-dev-skill --skill soroban
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: soroban
Source: https://github.com/stellar/stellar-dev-skill/tree/main/skills/soroban
Command: npx skills add https://github.com/stellar/stellar-dev-skill --skill soroban

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers need a structured, end-to-end guide for building, testing, and deploying Soroban smart contracts on Stellar.

Core Features & Use Cases

  • Contract Creation and Initialization: Provides procedures for setting up new Soroban contracts with constructor patterns.
  • Development Patterns: Offers best practices for contract structure, storage management, authorization, cross-contract calls, and event emission.
  • Testing and Deployment: Includes strategies for unit testing, integration testing, local testing with Stellar Quickstart, and deployment to testnet or local networks.

Quick Start

Write, test, and deploy a Soroban smart contract using Rust, following the provided structure and tooling instructions to accelerate Stellar-based application development.

Frequently Asked Questions about soroban

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Soroban smart contracts to the Stellar testnet?

Deploy Soroban smart contracts to the Stellar testnet by following structured deployment strategies that outline tooling instructions, network configuration, and local testing with Stellar Quickstart to ensure compatibility with the WASM environment.

What are the best practices for Soroban contract storage management?

Soroban contract storage management best practices involve structuring development patterns for efficient data handling, utilizing specific storage types, and following guidelines that ensure data persists correctly within the Stellar WASM environment throughout the contract lifecycle.

Can I perform cross-contract calls in Soroban using Rust?

Performing cross-contract calls in Soroban using Rust is fully supported through established development patterns, allowing contracts to securely interact with one another and emit events across the Stellar network.

How do I write unit tests for Stellar Soroban contracts?

Write unit tests for Stellar Soroban contracts by applying structured testing strategies that cover contract initialization, authorization logic, and integration testing workflows before deploying to local networks or the testnet.

Does Soroban support constructor patterns for smart contract initialization?

Soroban supports smart contract initialization through specific constructor patterns, providing procedures for setting up new contracts that ensure correct state configuration and secure authorization upon deployment on the Stellar network.

Why use Rust for developing Stellar smart contracts in a WASM environment?

Using Rust for developing Stellar smart contracts ensures robust compatibility with the WASM environment, providing strong memory safety and enabling advanced structuring for contract lifecycle, cross-contract interactions, and secure authorization patterns.