返回顶部
g

go4me

Send XCH to Twitter users via Go4Me address lookup. Use when sending Chia (XCH) to someone by their Twitter handle, looking up a Twitter user's XCH address, or tipping someone on Go4Me. Triggers on "send XCH to @user", "tip @user", "lookup @user on go4me", "what's @user's XCH address".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,533
下载量
1
收藏
概述
安装方式
版本历史

go4me

# Go4Me Skill Send XCH to Twitter users by resolving their Go4Me addresses. ## Dependencies - **sage-wallet** — Required for XCH transactions ## Commands | Command | Description | |---------|-------------| | `/go4me lookup <user>` | Get user's XCH address and profile | | `/go4me send <user> <amount>` | Send XCH to user (amount in XCH or mojos) | | `/go4me tip <user>` | Send 1 mojo tip | ## Natural Language - "Send 1 XCH to @hoffmang" - "Tip @sage_wallet" - "What's @bramcohen's XCH address?" - "Look up DracattusDev on Go4Me" ## Lookup Script ```bash source scripts/go4me-lookup.sh go4me_lookup "DracattusDev" # Returns JSON or exits 1 ``` ## Workflow ### Lookup 1. Strip `@` from username if present 2. Run `go4me_lookup "<username>"` 3. Parse JSON response for `xchAddress`, `fullName`, `username` 4. If exit code 1: user not found on Go4Me ### Send 1. Lookup user (as above) 2. If not found, report error 3. Display confirmation: ``` Send <amount> to @<username> (<fullName>)? Address: <xchAddress> [Yes] [No] ``` 4. On confirm, call sage-wallet `send_xch`: ```bash curl -s --cert $CERT --key $KEY -X POST https://127.0.0.1:9257/send_xch \ -H "Content-Type: application/json" \ -d '{"address":"<xchAddress>","amount":"<mojos>","fee":"0","memos":[],"auto_submit":true}' ``` 5. Report transaction result ### Tip Same as send with amount = 1 mojo. ## Amount Conversion | Input | Mojos | |-------|-------| | `1` (no unit) | 1 mojo | | `1 mojo` | 1 | | `0.001 XCH` | 1000000000 | | `1 XCH` | 1000000000000 | Parse amount: if contains "XCH", multiply by 10^12. Default unit is mojos for small numbers, XCH for decimals. ## Error Handling | Condition | Response | |-----------|----------| | User not on Go4Me | "User @{username} not found on Go4Me" | | Invalid address | "Invalid XCH address returned from Go4Me" | | Insufficient balance | "Insufficient balance for this transaction" | | Network error | "Failed to connect to Go4Me" | ## Data Available | Field | Example | |-------|---------| | `username` | DracattusDev | | `fullName` | 🌱Drac 🍊 | | `xchAddress` | xch1rvgc3naytvzhv4lxhzphrdr2fzj2ka340tdj8fflt4872t2wqveq9lwz7t | | `description` | Bio text | | `avatarUrl` | Profile image URL | | `totalBadgeScore` | 220 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 go4me-1776378182 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 go4me-1776378182 技能

通过命令行安装

skillhub install go4me-1776378182

下载 Zip 包

⬇ 下载 go4me v1.0.0

文件大小: 4.96 KB | 发布时间: 2026-4-17 15:39

v1.0.0 最新 2026-4-17 15:39
Go4Me Skill v1.0.0

- Initial release: Send Chia (XCH) to Twitter users via Go4Me address lookup.
- Natural language triggers like "send XCH to @user," "tip @user," and address lookup supported.
- Integrates with sage-wallet for sending XCH.
- Handles user lookups, sending, tipping (1 mojo), and error reporting.
- Supports XCH/mojo amount parsing and conversion.
- Provides profile details and transaction confirmation steps.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部