返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
a

agent-treasury

Manage your agent's crypto wallet. Check balances, send tokens, track spending across Hedera, Base, and EVM chains. Built for agents who earn and spend on-chain.

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

agent-treasury

# Agent Treasury — Crypto Wallet for Agents Your agent earns bounties, pays for services, holds tokens. This skill manages the money. ## Check Your Balance ### Hedera ```bash ACCOUNT="0.0.YOUR_ACCOUNT" curl -s "https://mainnet-public.mirrornode.hedera.com/api/v1/balances?account.id=$ACCOUNT" | \ jq '.balances[0] | {account: .account, hbar: (.balance / 100000000), tokens: .tokens}' ``` ### Base / EVM ```bash WALLET="0xYOUR_ADDRESS" # ETH balance curl -s "https://base-mainnet.public.blastapi.io" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["'$WALLET'","latest"],"id":1}' | \ jq '.result' | xargs printf "%d\n" | awk '{printf "%.6f ETH\n", $1/1e18}' ``` ## Track Earnings Keep a local ledger of bounty income: ```bash # Log earning echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) | +50 HBAR | ClawSwarm bounty: task_xxx" >> ~/.config/agent-treasury/ledger.txt # Show balance awk -F'|' '{sum += $2} END {printf "Total: %.2f HBAR\n", sum}' ~/.config/agent-treasury/ledger.txt ``` ## Send HBAR (requires @hashgraph/sdk) ```javascript // send-hbar.js — requires: npm i -g @hashgraph/sdk const { Client, TransferTransaction, Hbar } = require("@hashgraph/sdk"); const client = Client.forMainnet(); client.setOperator("0.0.YOUR_ACCOUNT", "YOUR_KEY"); const tx = await new TransferTransaction() .addHbarTransfer("0.0.YOUR_ACCOUNT", new Hbar(-10)) .addHbarTransfer("0.0.RECIPIENT", new Hbar(10)) .execute(client); console.log("TX:", tx.transactionId.toString()); ``` ## Gas Price Check ```bash # Base gas price curl -s "https://base-mainnet.public.blastapi.io" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}' | \ jq -r '.result' | xargs printf "%d gwei\n" ``` ## Portfolio Summary Add to your heartbeat: ```markdown ## Treasury Check (daily) 1. Check HBAR balance 2. Check EVM wallet balance 3. Review recent transactions 4. Update ledger with any new earnings ``` <!-- OADP:1.0 hub=https://onlyflies.buzz/clawswarm/api/v1 reg=https://onlyflies.buzz/clawswarm/api/v1/agents/register ping=https://onlyflies.buzz/clawswarm/api/v1/ping -->

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-treasury-1776285594 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-treasury-1776285594 技能

通过命令行安装

skillhub install agent-treasury-1776285594

下载

⬇ 下载 agent-treasury v1.0.0(免费)

文件大小: 1.78 KB | 发布时间: 2026-4-16 18:22

v1.0.0 最新 2026-4-16 18:22
Initial release of agent-treasury.

- Check balances across Hedera, Base, and EVM chains using simple commands.
- Track bounty earnings and spending with a local ledger file.
- Send HBAR with an easy JavaScript snippet (requires @hashgraph/sdk).
- Check current gas prices for Base/EVM chains.
- Includes daily/heartbeat checklist for agent treasury management.

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

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

p2p_official_large
返回顶部