GB-Power-Market-JJ wallet-balance
Query multi-chain wallet balances for EVM and BTC addresses. Supports address memory for quick re-query. Optional Tokenview API for comprehensive asset coverage; falls back to public data sources when not configured.
install
source · Clone the upstream repo
git clone https://github.com/GeorgeDoors888/GB-Power-Market-JJ
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.claude/skills && cp -r "$T/openclaw-skills/skills/bevanding/wallet-balance" ~/.claude/skills/georgedoors888-gb-power-market-jj-wallet-balance && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/openclaw-skills/skills/bevanding/wallet-balance" ~/.openclaw/skills/georgedoors888-gb-power-market-jj-wallet-balance && rm -rf "$T"
manifest:
openclaw-skills/skills/bevanding/wallet-balance/SKILL.mdsource content
Wallet Balance Skill
Multi-chain asset overview. Zero config required.
What This Does
Query wallet balances across multiple chains:
- EVM Chains: Ethereum, BSC, Base, Arbitrum, Polygon
- Bitcoin: BTC addresses
- Address Memory: Remember addresses for quick re-query
- Portfolio View: Combined total across all chains
Optional: Configure Tokenview API for comprehensive token coverage.
Installation
Prerequisites
- Node.js 18+ - Required to run the gateway
- Redis (optional) - For caching and rate limiting
Quick Install
cd skills/wallet-balance npm install npm start
The gateway will start on port 3000 (or set
PORT in .env).
Quick Start
# Query single address curl "http://127.0.0.1:3000/agent-skills/v1/assets?input=0x..." # Query from memory curl "http://127.0.0.1:3000/agent-skills/v1/assets?from_memory=1" # Add address to memory curl -X POST "http://127.0.0.1:3000/agent-skills/v1/memory" \ -H "Content-Type: application/json" \ -d '{"add":"0x..."}'
Commands
Query Single Address
GET /agent-skills/v1/assets?input=<address-or-domain>
Parameters:
- Wallet address (0x..., bc1..., etc.) or ENS/BNB domaininput
- Skip cache and fetch fresh datarefresh=1
Example Response:
{ "status": "ok", "address": "0x...", "total_usd": "5188.18", "chains": [ { "chain": "Ethereum", "chain_id": 1, "tokens": [ { "symbol": "USDT", "amount": "5185.5", "value_usd": "5184.26", "token_kind": "erc20" }, { "symbol": "ETH", "amount": "0.00179932", "value_usd": "3.92", "token_kind": "native" } ] } ], "data_source": "public_only", "attribution": "Data aggregated by Antalpha AI" }
Query Memory (Multiple Addresses)
GET /agent-skills/v1/assets?from_memory=1
Returns combined portfolio across all remembered addresses.
Memory Management
# List remembered addresses GET /agent-skills/v1/memory # Add address(es) POST /agent-skills/v1/memory Body: {"add": "0x..."} or {"add": ["0x...", "bc1..."]} # Remove address POST /agent-skills/v1/memory Body: {"remove": "0x..."}
Supported Inputs
| Type | Example | Notes |
|---|---|---|
| EVM Address | | Any EVM chain |
| BTC Address | or | Bitcoin mainnet |
| ENS Domain | | Ethereum name service |
| BNB Domain | | BSC name service |
Data Sources
| Configuration | Coverage |
|---|---|
| No Tokenview | ETH, BSC native + USDT only |
| With Tokenview | Full multi-chain portfolio |
Environment Variables
| Variable | Default | Description |
|---|---|---|
| 3000 | Gateway port |
| - | Optional Redis for caching |
| - | Optional for full coverage |
| PublicNode | Ethereum RPC endpoint |
| PublicNode | BSC RPC endpoint |
Response Format
Single Address Response
- Total portfolio value in USDtotal_usd
- Assets grouped by chainchains[]
- Token balances and valueschains[].tokens[]
-data_source
orpublic_onlytokenview
- Data source attributionattribution
Memory Query Response
query_mode: "memory"
- Array of individual address resultsresults[]
- Aggregated portfolio valuecombined_total_usd
Security Notes
- Local HTTP Server: This skill starts a local HTTP server on the configured port (default 3000)
- File Persistence: Address memory is persisted to
by default, or the path specified byremembered-addresses.jsonMEMORY_STORE_PATH - External Requests: Wallet addresses are sent to external services (RPC providers, CoinGecko, optionally Tokenview)
- No Private Keys: This skill never requires or handles private keys
- Redis Optional: Service works without Redis, but with no caching or rate limiting
- Rate Limiting: When Redis is available, requests are rate-limited per IP and address
Health Check
curl http://127.0.0.1:3000/healthz
Maintainer: Antalpha AI Team
License: MIT