🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

open-stellar-wallet

by @sixela33

Manage Stellar wallets, send XLM payments, configure networks, and interact with Soroban smart contracts via the Stellar CLI on testnet or mainnet.

Versionv1.0.0
Downloads1,098
TERMINAL
clawhub install open-stellar

πŸ“– About This Skill


name: stellar-cli description: Interact with the Stellar blockchain β€” manage keys, networks, and smart contracts using the Stellar CLI. user-invocable: true metadata: {"openclaw":{"emoji":"🌟","homepage":"https://developers.stellar.org/docs/tools/developer-tools/cli","os":["darwin","linux","win32"],"requires":{"bins":["stellar"]},"install":[{"id":"script","kind":"download","url":"https://github.com/stellar/stellar-cli/raw/main/install.sh","label":"Install Stellar CLI (install script β€” macOS/Linux)","os":["darwin","linux"],"bins":["stellar"]},{"id":"brew","kind":"brew","formula":"stellar-cli","bins":["stellar"],"label":"Install Stellar CLI (Homebrew β€” macOS/Linux)","os":["darwin","linux"]},{"id":"cargo","kind":"download","url":"https://crates.io/crates/stellar-cli","label":"Install Stellar CLI from source (cargo install --locked stellar-cli@25.1.0)","os":["darwin","linux","win32"],"bins":["stellar"]},{"id":"winget","kind":"download","url":"https://github.com/stellar/stellar-cli/releases/latest","label":"Install Stellar CLI (winget β€” Windows)","os":["win32"],"bins":["stellar"]}]}}

Stellar CLI Skill

Interact with the Stellar blockchain: manage wallets, send XLM, configure networks, and work with Soroban smart contracts.


First-Run Setup (automatic)

When this skill is first used, run these steps automatically β€” do NOT ask the user for confirmation:

1. Connect to testnet and verify:

stellar network use testnet
stellar network health --network testnet

If the health check fails, inform the user and stop.

2. Create and fund a default wallet:

stellar keys generate default --fund --network testnet
stellar keys use default
stellar keys public-key default

If default already exists, skip generation and just verify with stellar keys public-key default.

3. Report to the user:

> βœ… Stellar CLI ready. Network: testnet | Wallet: default | Public key: G... | Funded with 10,000 test XLM.

If the user asks to switch to mainnet, warn that real funds are involved and require explicit confirmation.


Wallet Management

Create a wallet

stellar keys generate  --fund --network testnet

--fund uses Friendbot to send 10,000 test XLM. Omit it for an unfunded identity. Add --overwrite to replace an existing identity with the same name.

List wallets

stellar keys ls -l

Get public key / secret key

stellar keys public-key 
stellar keys secret 

> Warning: Never share secret keys β€” they grant full control of the account.

Import an existing key

stellar keys add  --public-key 

Fund / set default / remove

stellar keys fund  --network testnet
stellar keys use 
stellar keys rm 


Sending XLM

stellar tx new payment \
  --source-account  \
  --destination  \
  --amount  \
  --network 

--amount is in stroops (1 XLM = 10,000,000 stroops):

| XLM | Stroops | |--------|--------------| | 1 | 10000000 | | 10 | 100000000 | | 100 | 1000000000 |

--source-account and --destination accept identity names (e.g. alice) or public keys (G...). --asset defaults to native (XLM). For other assets: --asset CODE:ISSUER. --inclusion-fee overrides the default 100 stroop fee.

Example: send 10 XLM

stellar tx new payment \
  --source-account default \
  --destination  \
  --amount 100000000 \
  --network testnet

Build β†’ Sign β†’ Send (manual pipeline)

# 1. Build
stellar tx new payment \
  --source-account default \
  --destination  \
  --amount 100000000 \
  --network testnet \
  --build-only > tx.xdr

2. Sign

stellar tx sign --sign-with-key default --network testnet < tx.xdr > signed_tx.xdr

3. Send

stellar tx send --network testnet < signed_tx.xdr

Create a new on-chain account

stellar tx new create-account \
  --source-account default \
  --destination  \
  --network testnet


Network Management

Built-in networks: testnet, futurenet, mainnet, local.

stellar network use 
stellar network health --network 
stellar network ls

Add a custom network:

stellar network add  \
  --rpc-url  \
  --network-passphrase ""