返回顶部
w

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.

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

wallet-balance

# 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 ```bash cd skills/wallet-balance npm install npm start ``` The gateway will start on port 3000 (or set `PORT` in `.env`). ## Quick Start ```bash # 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 ```bash GET /agent-skills/v1/assets?input=<address-or-domain> ``` **Parameters**: - `input` - Wallet address (0x..., bc1..., etc.) or ENS/BNB domain - `refresh=1` - Skip cache and fetch fresh data **Example Response**: ```json { "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) ```bash GET /agent-skills/v1/assets?from_memory=1 ``` Returns combined portfolio across all remembered addresses. ### Memory Management ```bash # 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 | `0x4Da2...C0490` | Any EVM chain | | BTC Address | `bc1q...` or `1A...` | Bitcoin mainnet | | ENS Domain | `vitalik.eth` | Ethereum name service | | BNB Domain | `example.bnb` | 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 | |----------|---------|-------------| | `PORT` | 3000 | Gateway port | | `REDIS_URL` | - | Optional Redis for caching | | `TOKENVIEW_API_KEY` | - | Optional for full coverage | | `ETH_RPC_URL` | PublicNode | Ethereum RPC endpoint | | `BNB_RPC_URL` | PublicNode | BSC RPC endpoint | ## Response Format ### Single Address Response - `total_usd` - Total portfolio value in USD - `chains[]` - Assets grouped by chain - `chains[].tokens[]` - Token balances and values - `data_source` - `public_only` or `tokenview` - `attribution` - Data source attribution ### Memory Query Response - `query_mode: "memory"` - `results[]` - Array of individual address results - `combined_total_usd` - Aggregated portfolio value ## 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 `remembered-addresses.json` by default, or the path specified by `MEMORY_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 ```bash curl http://127.0.0.1:3000/healthz ``` --- **Maintainer**: Antalpha AI Team **License**: MIT

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wallet-balance-1776020262 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wallet-balance-1776020262 技能

通过命令行安装

skillhub install wallet-balance-1776020262

下载 Zip 包

⬇ 下载 wallet-balance v1.1.5

文件大小: 24 KB | 发布时间: 2026-4-13 12:31

v1.1.5 最新 2026-4-13 12:31
- Added documentation for new Tokenview API environment variables, including base URL and path options.
- Updated security notes with details on local HTTP server, file persistence, and external API interactions.
- Expanded environment variable section to reflect additional Tokenview and provider options.
- Minor documentation corrections and organizational improvements.

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

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

p2p_official_large
返回顶部