rs-soroban-sdk

Build secure Soroban smart contracts on Stellar using the Rust SDK.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/padparadscho/skills --skill rs-soroban-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rs-soroban-sdk
Source: https://github.com/padparadscho/skills/tree/main/skills/rs-soroban-sdk
Command: npx skills add https://github.com/padparadscho/skills --skill rs-soroban-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for developers building secure Soroban smart contracts on the Stellar blockchain using the Rust SDK.

Core Features & Use Cases

  • Contract scaffolding and macro usage: guidance on structuring contracts with #[contract] and #[contractimpl], environment access, and storage types (Persistent, Temporary, Instance).
  • Security, testing, and deployment practices: authorization patterns, TTL management, tests with testutils, and deployment steps; coverage from simple wallets to upgradeable designs.
  • References and patterns: practical examples, best practices, and reference materials to accelerate real-world use.

Quick Start

Create a minimal Soroban contract skeleton with a single public function guarded by authorization and storing an admin address in Instance storage and exposing a public function.

Frequently Asked Questions about rs-soroban-sdk

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

FAQPage Schema
How do I structure a Soroban smart contract in Rust?

Structure Soroban smart contracts in Rust using the #[contract] and #[contractimpl] macros to define contract logic. Access blockchain environment data and manage state through Persistent, Temporary, and Instance storage types.

How do I test Soroban contracts using the Rust SDK?

Test Soroban contracts using the Rust SDK by leveraging built-in testutils. This allows you to simulate contract execution, verify storage state, and validate authorization patterns locally before deploying to the Stellar network.

What is the best way to handle authorization in Stellar Soroban contracts?

Handle authorization in Stellar Soroban contracts by implementing built-in auth patterns within your contract functions. The Rust SDK provides mechanisms to require and verify caller signatures for secure access control.

Can I build upgradeable smart contracts on Stellar with Soroban?

Yes, you can build upgradeable smart contracts on Stellar using Soroban. The Rust SDK supports designing upgradeable systems by managing contract logic and utilizing specific storage patterns for state preservation.

How does TTL management work for Soroban contract storage?

TTL management for Soroban contract storage controls the lifetime of Temporary and Persistent data. The Rust SDK provides functions to extend lease periods, ensuring contract data persists on the Stellar network as needed.

Do I need Rust to deploy Soroban contracts on Stellar?

Yes, you need Rust to build and deploy Soroban contracts on Stellar using this SDK. It provides the necessary macros, environment access, and deployment practices for compiling and deploying secure contract logic.