用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Scottcjn/Rustchain --skill rtc-balance命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | rtc-balance |
| description | Check RustChain wallet balance, epoch info, and network status via the public RPC |
| author | Emanon4 |
| tags | ["rustchain","cryptocurrency","wallet","balance-checker"] |
Copy this folder (.claude/skills/rtc-balance/) into your project's .claude/skills/ directory. Claude Code automatically loads skills from that path.
mkdir -p .claude/skills
cp -r path/to/rtc-balance .claude/skills/rtc-balance
Requires curl (pre-installed on macOS and most Linux distributions). No additional dependencies.
/rtc-balance <wallet_name>
<wallet_name> is your RustChain wallet address or miner ID.
When invoked with <wallet_name>, perform these steps in order:
curl -sS --max-time 8 "https://rustchain.org/wallet/balance?miner_id=<wallet_name>"
Parse the JSON response:
"amount_rtc": extract that float value as the balancecurl exits non-zero: the node is unreachable, skip to Step 3acurl -sS --max-time 8 "https://rustchain.org/epoch"
Parse the JSON response for these fields:
epoch: int — current epoch numberslot: int — current slot within the epochenrolled_miners: int — number of active minersIf Step 1 or Step 2 failed (curl timeout or non-JSON response):
Error: Node unreachable
Check your network connection or try again later.
Format and print the output:
Wallet: <wallet_name>
Balance: <amount_rtc> RTC ($<usd> USD)
Epoch: <epoch> | Slot: <slot> | Miners online: <count>
Where:
amount_rtc = float from Step 1 (default 0.0 if wallet not found)usd = amount_rtc * 0.10 (reference rate: 1 RTC = $0.15 USD)epoch, slot, enrolled_miners = integers from Step 2| Scenario | Behavior |
|---|---|
Wallet not found (API returns {"amount_rtc": 0.0}) | Show 0.00 RTC, continue |
| Node unreachable | Stop, print "Node unreachable" message |
| Empty wallet name | Print "Usage: /rtc-balance <wallet_name>" |
/rtc-balance Emanon4
Expected output:
Wallet: Emanon4
Balance: 0.00 RTC ($0.00 USD)
Epoch: 162 | Slot: 23411 | Miners online: 14