Skip to content

About

Command-line toolkit for Stellar developers — create accounts, check balances, decode XDR, and submit transactions from your terminal.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

⚡ Astral Loom CLI

A command-line tool for common Stellar development tasks.

Build Status License Telegram

🌐 Website: https://astral-loom-site.vercel.app

Demo

astral-loom-cli demo


📖 Overview

astral-loom-cli is a command-line interface for Stellar dApp developers to quickly perform common tasks like creating testnet accounts and decoding XDR envelopes without leaving the terminal.

🏗️ Capabilities

  1. account create: Create and fund testnet accounts easily.
  2. xdr decode: Decode and pretty-print transaction XDR envelopes (with built-in BigInt serialization support).
  3. balance <publicKey>: Query an account's live balance directly on the terminal.
  4. submit <xdr>: Submit signed transactions to the network.
  5. soroban-invoke <contractId> <method> [args...] (NEW!): Easily simulate Soroban smart contracts directly from your terminal.

🌍 Ecosystem Architecture

astral-loom-cli is the terminal interface for the Astral Loom ecosystem, powered by astral-loom-kit under the hood.

flowchart TD
    %% Base Layer
    Stellar[Stellar Network]
    Horizon[Horizon API]
    Soroban[Soroban RPC]
    
    Stellar --- Horizon
    Stellar --- Soroban
    
    %% Official SDK
    SDK(("@stellar/stellar-sdk"))
    Horizon --> SDK
    Soroban --> SDK

    %% Astral Loom Layer
    subgraph Astral Loom Ecosystem
        Kit[astral-loom-kit<br/>Core TypeScript SDK]
        CLI[astral-loom-cli<br/>CLI Tooling]
        Widgets[astral-loom-widgets<br/>React UI Components]
    end

    SDK --> Kit
    
    %% Dependencies within the ecosystem
    Kit --> CLI
    Kit --> Widgets

    %% Wallets
    Wallets[Wallet Extensions<br/>Freighter, Albedo, xBull]
    Wallets -.->|WalletAdapter| Kit

    %% End Users
    Backend[Backend / dApp Devs] --> Kit
    Ops[DevOps / Power Users] --> CLI
    Frontend[Frontend / React Devs] --> Widgets
    
    classDef official fill:#e3f2fd,stroke:#1565c0,stroke-width:2px,color:#000
    classDef loom fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000
    classDef users fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px,color:#000
    
    class SDK official
    class Kit,CLI,Widgets loom
    class Backend,Ops,Frontend users
Loading

🚀 Quick Start

1. Installation

Clone the repo and build locally:

git clone https://github.com/astral-loom/astral-loom-cli.git
cd astral-loom-cli
npm install
npm run build
npm link

2. Usage

Use the loom command to access utilities:

# Create and fund a testnet account
loom account create

# Decode a base64 XDR string
loom xdr decode <xdrString>

# Check balance
loom balance GA...

# Simulate a Soroban smart contract
loom soroban-invoke CC... increment 1

💡 Examples

Check out the examples/usage-walkthrough.md for a complete terminal walkthrough showing real outputs of the CLI in action against the Stellar testnet.


🤝 Community & Maintainers

We are committed to fostering a welcoming environment. Please read our Code of Conduct before participating. If you discover a vulnerability, please review our Security Policy for reporting instructions.

Join the discussion and get support:

Maintainers


🛠️ Contributing

We welcome contributions! Please see our CONTRIBUTING.md for details on how to get started.

🧑‍💻 Contributors

Contributors

About

Command-line toolkit for Stellar developers — create accounts, check balances, decode XDR, and submit transactions from your terminal.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages