stellar-cli

Interact with the Stellar blockchain — manage keys, networks, and smart contracts using the Stellar CLI.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "stellar-cli" with this command: npx skills add Sixela33/open-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.

  1. 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.

  1. 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 <NAME> --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 <NAME>
stellar keys secret <NAME>

Warning: Never share secret keys — they grant full control of the account.

Import an existing key

stellar keys add <NAME> --public-key <G_ADDRESS>

Fund / set default / remove

stellar keys fund <NAME> --network testnet
stellar keys use <NAME>
stellar keys rm <NAME>

Sending XLM

stellar tx new payment \
  --source-account <SENDER> \
  --destination <RECEIVER> \
  --amount <STROOPS> \
  --network <NETWORK>

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

XLMStroops
110000000
10100000000
1001000000000

--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 <STROOPS> overrides the default 100 stroop fee.

Example: send 10 XLM

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

Build → Sign → Send (manual pipeline)

# 1. Build
stellar tx new payment \
  --source-account default \
  --destination <RECEIVER> \
  --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 <NEW_PUBLIC_KEY> \
  --network testnet

Network Management

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

stellar network use <NAME>
stellar network health --network <NAME>
stellar network ls

Add a custom network:

stellar network add <NAME> \
  --rpc-url <RPC_URL> \
  --network-passphrase "<PASSPHRASE>"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

Crypto Whale Tracker

Track large cryptocurrency transfers (whale movements) using public APIs like Whale Alert and Etherscan. Set thresholds, monitor wallets, and generate format...

Registry SourceRecently Updated
Web3

Crypto Tax Calc

Calculate crypto capital gains taxes with FIFO/LIFO/average cost methods, multi-country tax law support, and HTML report generation. Use when you need crypto...

Registry SourceRecently Updated
Web3

Crypto Tracker Cn

Track cryptocurrency markets in real-time. 加密货币行情追踪、比特币价格、以太坊ETH、市值排行、DeFi数据、恐惧贪婪指数、趋势币种、空投信息、RSI技术分析、均线分析、金叉死叉、DeFi收益率对比、Gas费查询。Use when checking crypto pri...

Registry SourceRecently Updated
Web3

Crypto News Feed

Aggregate crypto news from RSS feeds, filter by keywords, score sentiment, and generate daily digest HTML reports. Use when you need crypto news feed capabil...

Registry SourceRecently Updated