Simple wallet for Kaspa blockchain. Send KAS, check balances, generate payment URIs. Self-custody CLI wallet with JSON output for automation.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install kaspa或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install kaspa⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/kaspa/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: kaspa-wallet description: > Simple wallet for Kaspa blockchain. Send KAS, check balances, generate payment URIs. Self-custody CLI wallet with JSON output for automation. keywords: - kaspa - kas - wallet - payments - transfer - balance - cryptocurrency - blockdag allowed-tools: - Bash - Read - Write - Glob - Grep - Task user-invocable: true ---
Simple self-custody wallet for Kaspa blockchain.
┌─────────────────────────────────────────────────────────┐
│ KASPA WALLET │
├─────────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────┐ │
│ │ Balance │ │ Send │ │ Payment URIs │ │
│ │ Check │ │ KAS │ │ Generator │ │
│ └─────────────┘ └─────────────┘ └─────────────────┘ │
│ │ │ │ │
│ └────────────────┴───────────────────┘ │
│ │ │
│ ┌──────────▼──────────┐ │
│ │ Kaspa Python SDK │ │
│ │ (wRPC Client) │ │
│ └─────────────────────┘ │
│ │ │
│ ┌───────────────┼───────────────┐ │
│ ▼ ▼ ▼ │
│ ┌─────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Mainnet │ │ Testnet │ │ Custom │ │
│ │ wRPC │ │ wRPC │ │ RPC │ │
│ └─────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────┘
| Feature | Description | |---------|-------------| | Send KAS | Transfer KAS to any Kaspa address | | Balance Check | Check balance of any address | | Payment URIs | Generate kaspa: payment request URIs | | Fee Estimates | Get current network fee tiers | | Network Info | Check node sync status and blocks | | Wallet Generation | Generate new mnemonic phrases |
python3 install.py
Requirements: Python 3.8+ with pip. Works on macOS, Linux, Windows.
Troubleshooting install:
pip install kaspa manually, or try KASPA_PYTHON=python3.12 python3 install.pysudo apt install python3-venv (Ubuntu/Debian)rm -rf .venv && python3 install.py# Check balance
./kaswallet.sh balance
./kaswallet.sh balance kaspa:qrc8y...
# Send payment
./kaswallet.sh send kaspa:qrc8y... 0.5
./kaswallet.sh send kaspa:qrc8y... max
# Generate payment URI
./kaswallet.sh uri kaspa:q... 1.5 "coffee payment"
# Network info
./kaswallet.sh info
# Fee estimates
./kaswallet.sh fees
# Generate new wallet
./kaswallet.sh generate-mnemonic
kaspa-wallet/
├── SKILL.md
├── README.md
├── install.py # Auto-installer with venv
├── kaswallet.sh # CLI wrapper script
├── requirements.txt
└── scripts/
└── kaswallet.py # Main wallet logic
# Environment variables (one required)
export KASPA_PRIVATE_KEY="64-character-hex-string"
# OR
export KASPA_MNEMONIC="your twelve or twenty four word seed phrase"
# Optional
export KASPA_NETWORK="mainnet" # mainnet (default), testnet-10
export KASPA_RPC_URL="wss://..." # Custom RPC endpoint
export KASPA_RPC_CONNECT_TIMEOUT_MS="30000" # Connection timeout (default: 15000)
./kaswallet.sh balance # Your wallet balance
./kaswallet.sh balance kaspa:qrc8y... # Any address balance
Output:
{"address": "kaspa:q...", "balance": "1.5", "sompi": "150000000", "network": "mainnet"}
./kaswallet.sh send <address> <amount> # Send specific amount
./kaswallet.sh send <address> max # Send entire balance
./kaswallet.sh send <address> <amount> priority # Priority fee tier
Output (success):
{"status": "sent", "txid": "abc123...", "from": "kaspa:q...", "to": "kaspa:q...", "amount": "0.5", "fee": "0.0002"}
Output (error):
{"error": "Storage mass exceeds maximum", "errorCode": "STORAGE_MASS_EXCEEDED", "hint": "...", "action": "consolidate_utxos"}
./kaswallet.sh info
Output:
{"network": "mainnet", "url": "wss://...", "blocks": 12345678, "synced": true, "version": "1.0.0"}
./kaswallet.sh fees
Output:
{"network": "mainnet", "low": {"feerate": 1.0, "estimatedSeconds": 60}, "economic": {...}, "priority": {...}}
./kaswallet.sh generate-mnemonic
Output:
{"mnemonic": "word1 word2 word3 ... word24"}
./kaswallet.sh uri # Your address
./kaswallet.sh uri kaspa:q... 1.5 "payment" # With amount and message
| Error | Cause | Solution | |-------|-------|----------| | STORAGE_MASS_EXCEEDED | Amount too small for current UTXOs | Send max to yourself first to consolidate | | NO_UTXOS | No spendable outputs | Wait for confirmations or fund wallet | | INSUFFICIENT_FUNDS | Balance too low | Check balance, reduce amount | | RPC_TIMEOUT | Network slow | Retry or increase timeout | | NO_CREDENTIALS | Missing wallet key | Set KASPA_PRIVATE_KEY or KASPA_MNEMONIC | | SDK_NOT_INSTALLED | Kaspa SDK missing | Run python3 install.py |
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Sender │ │ Kaspa Wallet│ │ Recipient │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
│ 1. Initiate │ │
│──────────────────▶│ │
│ │ │
│ │ 2. Execute │
│ │ KAS Transfer │
│ │─────────────────▶│
│ │ │
│ │ 3. Confirm │
│ │◀──────────────────│
│ 4. Success │ │
│◀──────────────────│ │
│ │ │
When sending fails with STORAGE_MASS_EXCEEDED:
# 1. Get your address
./kaswallet.sh balance
# Returns: {"address": "kaspa:qYOUR_ADDRESS...", ...}
# 2. Send max to yourself (consolidates UTXOs)
./kaswallet.sh send kaspa:qYOUR_ADDRESS... max
# 3. Now send the original amount (will work)
./kaswallet.sh send kaspa:qRECIPIENT... 0.5
After sending, use the txid to verify on a block explorer:
https://explorer.kaspa.org/txs/{txid}https://explorer-tn10.kaspa.org/txs/{txid}# Testnet
export KASPA_NETWORK="testnet-10"
./kaswallet.sh info
# Back to mainnet
export KASPA_NETWORK="mainnet"
./kaswallet.sh info
All command inputs accept KAS. Outputs include both KAS and sompi where relevant.
kaspa:q... format)...
安装 Kaspa Wallet 后,可以对 AI 说这些话来触发它
Help me get started with Kaspa Wallet
Explains what Kaspa Wallet does, walks through the setup, and runs a quick demo based on your current project
Use Kaspa Wallet to simple wallet for Kaspa blockchain
Invokes Kaspa Wallet with the right parameters and returns the result directly in the conversation
What can I do with Kaspa Wallet in my finance & investment workflow?
Lists the top use cases for Kaspa Wallet, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/kaspa/ 目录(个人级,所有项目可用),或 .claude/skills/kaspa/(项目级)。重启 AI 客户端后,用 /kaspa 主动调用,或让 AI 根据上下文自动发现并使用。
Kaspa Wallet 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Kaspa Wallet 可免费安装使用。请查阅仓库了解许可证信息。
Simple wallet for Kaspa blockchain. Send KAS, check balances, generate payment URIs. Self-custody CLI wallet with JSON output for automation.
Kaspa Wallet 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Kaspa Wallet
Identifies repetitive steps in your workflow and sets up Kaspa Wallet to handle them automatically