← 返回
AI智能 中文

Sage Wallet

Interact with the Sage Chia blockchain wallet via RPC. Use for XCH transactions, CAT tokens, NFTs, DIDs, offers, options, coin management, and wallet configuration. Supports cross-platform setups (Mac/Linux/Windows) with configurable RPC endpoints and SSL certificates. Invoke with /sage commands or natural language like "send XCH", "check my NFTs", "create an offer", "mint a CAT token".
通过 RPC 与 Sage Chia 区块链钱包交互。用于 XCH 交易、CAT 代币、NFT、DID、报价、期权、币管理及钱包配置。支持跨平台(Mac/Linux/Windows),可配置 RPC 端点和 SSL 证书。使用 /sage 命令或自然语言调用,例如“发送 XCH”“查看 NFT”“创建报价”“铸造 CAT”。
koba42corp
AI智能 clawhub v1.0.0 1 版本 99951.9 Key: 无需
★ 1
Stars
📥 2,057
下载
💾 129
安装
1
版本
#latest

概述

Sage Wallet Skill

RPC interface to Sage wallet for Chia blockchain operations.

Configuration

User settings stored in {workspace}/config/sage-wallet.json:

{
  "platform": "auto",
  "rpc_url": "https://127.0.0.1:9257",
  "cert_path": null,
  "key_path": null,
  "fingerprint": null,
  "auto_login": false
}

Platform Defaults

PlatformCert PathKey Path
-------------------------------
mac~/Library/Application Support/com.rigidnetwork.sage/ssl/wallet.crt...wallet.key
linux~/.local/share/sage/ssl/wallet.crt...wallet.key
windows%APPDATA%\com.rigidnetwork.sage\ssl\wallet.crt...wallet.key

When platform is "auto", detect via uname -s.

Slash Commands

Configuration

CommandAction
-----------------
/sage statusShow config and test connection
/sage configDisplay current settings
`/sage config platform mac\linux\windows>`Set platform
/sage config rpc Set RPC URL
/sage config cert Set SSL cert path
/sage config key Set SSL key path
/sage config fingerprint Set default wallet fingerprint
`/sage config autologin off>`Toggle auto-login
/sage config resetReset to defaults

Operations

Route to appropriate sub-skill based on domain:

DomainSub-SkillExample Commands
-------------------------------------
Auth & Keyssage-auth/sage login, /sage logout, /sage keys
XCHsage-xch/sage send xch, /sage balance, /sage combine
CAT Tokenssage-cat/sage cats, /sage send cat, /sage issue cat
NFTssage-nft/sage nfts, /sage mint nft, /sage transfer nft
DIDssage-did/sage dids, /sage create did
Offerssage-offers/sage offers, /sage make offer, /sage take offer
Optionssage-options/sage options, /sage mint option
Coinssage-coins/sage coins, /sage check address
Transactionssage-txn/sage pending, /sage submit
Networksage-network/sage peers, /sage network
Systemsage-system/sage sync, /sage version
WalletConnectsage-walletconnect/sage wc sign

Global Parameters

All commands accept optional overrides:

  • --fingerprint — Use specific wallet
  • --rpc — Override RPC URL
  • --cert — Override cert path
  • --key — Override key path

Scripts

  • scripts/sage-config.sh — Config management
  • scripts/sage-rpc.sh — RPC caller with mTLS

Making RPC Calls

# Source the RPC helper
source scripts/sage-rpc.sh

# Call an endpoint
sage_rpc "get_sync_status" '{}'
sage_rpc "send_xch" '{"address":"xch1...","amount":"1000000000000","fee":"100000000"}'

Sub-Skills

Each sub-skill handles a specific domain. Load the appropriate one based on the operation:

Sub-SkillWhen to Load
-------------------------
sage-authLogin, logout, key management, mnemonics
sage-xchSend/receive XCH, combine, split coins
sage-catCAT token operations
sage-nftNFT minting, transfers, collections
sage-didDID creation and management
sage-offersOffer creation, acceptance, cancellation
sage-optionsOptions protocol operations
sage-coinsCoin queries, address validation
sage-txnTransaction signing, submission
sage-networkPeer and network settings
sage-systemSync status, version, database
sage-walletconnectWalletConnect integration

First Run

On first invocation:

  1. Check for config file; create if missing
  2. Detect platform if set to "auto"
  3. Verify cert/key files exist
  4. If missing, prompt user to configure paths
  5. Test connection with GetVersion

If certs not found, guide user:

Sage certificates not found. Configure with:
  /sage config cert /path/to/wallet.crt
  /sage config key /path/to/wallet.key

Error Handling

RPC errors return HTTP status codes:

  • 400 — Bad request (invalid params)
  • 401 — Unauthorized (cert mismatch)
  • 404 — Not found
  • 500 — Internal error

Always check response for error field before processing data.

Amount Formatting

Sage uses mojos (1 XCH = 1,000,000,000,000 mojos). The Amount type in requests/responses is a string representing mojos. Convert for display:

1 XCH = "1000000000000"
0.001 XCH = "1000000000"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 18:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,531
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 796,000
developer-tools

iResponder

koba42corp
监控iMessage/SMS对话,根据可配置规则、AI提示词和频率限制条件自动回复。用于需基于上下文向特定联系人自动回复AI生成内容,或管理自动回复设置、联系人、提示词及查看状态/历史记录时。
★ 0 📥 3,032