Stellar Playbook
website·Indexed 29 days ago
https://stellarplaybook.com/A comprehensive guide for developers building on the Stellar Network. It provides technical documentation and directories for creating Classic and Smart wallets, implementing key management with passkeys, integrating on-off ramps via SEP-24 and SEP-6, and deploying DeFi solutions including yield-bearing assets, AMMs, and the Stellar Disbursement Platform (SDP).
What's inside Stellar Playbook
- The Stellar Wallet Playbook is a guide for developers and wallet builders to create secure and user-friendly digital finance applications on the Stellar network. It provides guidance on bridging onchain and offchain finance, utilizing Stellar's network of on/off-ramps, Real World Assets (RWAs), yield-bearing products, and native DeFi protocols. Key design decisions covered in the playbook include choosing between Classic and Smart Wallets and determining necessary integrations for scaling to millions of users.
Overview of Bridge Protocols for Stellar
Bridges are protocols that enable the transfer of assets between different blockchain networks. In the context of Stellar, these solutions connect the Stellar network to other blockchain ecosystems, allowing users to move their assets across chains.Overview of Stellar Ramps for Wallet Integration
Stellar Ramps is a suite of open standards designed for wallets and applications to connect with a global network of on- and off-ramps provided by Stellar anchors (institutions and fintechs bridging Stellar to traditional payment rails). Implementing these standards allows users to exchange local fiat for digital assets (and vice versa) directly within a wallet for on-chain storage, transmission, or usage.Overview of Blend Protocol for Wallet Integration
Blend is a multi-asset lending and borrowing protocol on the Stellar smart contract platform. It allows users to supply assets as collateral, borrow against that collateral, and earn rewards via an emissions system. Wallet providers can integrate Blend to offer yield-generating opportunities directly within their wallet environment.Overview of DeFindex Yield Aggregation Protocol
DeFindex is a vault and yield aggregation protocol built on Stellar/Soroban designed to simplify DeFi access for wallets and users. It enables the creation of tokenized vaults that automatically distribute funds across multiple yield-generating strategies (such as Blend lending protocols and liquidity pools). Vault managers can rebalance positions and optimize returns without requiring additional user signatures, allowing asset managers or wallets to offer yield-generating accounts without building deep in-house DeFi expertise.Utilize AMMs and DEX Aggregators on Stellar
Automated Market Makers (AMMs) enable decentralized trading and liquidity provision on Stellar. Soroswap is a notable AMM that provides decentralized exchange functionality and DEX aggregation, allowing users to swap tokens at the best available rates across multiple liquidity sources.Use XycLoans for decentralized flash loans
XycLoans is a flash-loans-only protocol on Soroban. It uses token-specific liquidity pools where borrowers can take flash loans and lenders can provide liquidity to earn yields without the risk of liquidity loss.Use Excellar for liquid yield tokens
Excellar provides regulated, crypto-denominated liquid yield tokens on Stellar using CDP/Basis trading.Understand Classic Wallets on Stellar
Classic Wallets use Stellar's traditional account model and rely on features native to the Stellar protocol without using Soroban smart contracts. They are backed by Classic Stellar Accounts (addresses starting with 'G...') and use Ed25519 public/private keypairs for transaction signing. Account data (subentries) is stored directly within Stellar Core.
Key capabilities include:
- Sending and receiving XLM and issued assets
- Trustline management
- Signer management (adding/removing signers)
- Trading via the Stellar Decentralized Exchange (DEX)
- Account or trustline sponsorship
- Data storage via the
ManageDataoperation
Ideal for lightweight mobile/web wallets, high-throughput/low-fee applications, and apps without complex on-chain logic requirements.
Implement a Custodial Wallet architecture
In a custodial wallet model, the service provider controls the user's private keys and manages accounts on their behalf. This architecture is typically used by exchanges or services requiring full control over the user experience. Key characteristics include using a central ledger (database or omnibus account model) to track users and having the backend sign transactions on behalf of the user.
Advantages:
- Simplified UX (users don't manage keys).
- Easier account recovery and support.
- Better enforcement of compliance and transaction logic.
Trade-offs:
- High security and compliance responsibility.
- Creates a central point of failure.
- May require regulatory licenses (KYC, custody licenses).
Use Huma for business lending on Soroban
Huma is a sophisticated business lending protocol integrated with Soroban for lending and borrowing.Use Axelar as a cross-chain bridge
Axelar provides bridging services for the Stellar ecosystem.