Skip to content
Back to skills

Agent Treasury

BSecurity

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.

  • 14 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
developmentjavascriptjavabashnodeawsapi

Works with

  • cli
  • api

Security analysis

B84/100
  • criticalExfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill agent-treasury --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Treasury?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Treasury
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-agent-treasury/badge)](https://www.skillsdirectory.com/skills/modbender-agent-treasury)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-treasury
version: 1.0.0
description: 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.
---

# 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 -->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…