← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

query-address-info

查询任何链上钱包地址的代币余额和持仓。获取指定钱包地址在给定链上的所有代币持有情况,包括代币名称、符号、价格、24小时价格变动以及持有数量。当用户询问关于钱包余额、代币持有、投资组合或任何区块链地址的资产持仓时,请使用此技能。

person作者: jakexiaohubgithub

Query Address Info Skill

Overview

This skill queries any on-chain wallet address for token holdings, supporting:

List of all tokens held by a wallet address Current price of each token 24-hour price change percentage Holding quantity

When to Use This Skill

| User intent | Command | |-------------|---------| | List a wallet's token holdings with price and 24h change | positions |

Supported Chains

| Chain | chainId | |-------|---------| | BSC | 56 | | Solana | CT_501 | | Base | 8453 | | Ethereum | 1 |

How to Call APIs

node <skill-dir>/scripts/cli.mjs positions '{"address":"0x...","chainId":"56","offset":0}'

Commands

| Command | Purpose | Required args | Example | |---------|---------|---------------|---------| | positions | List wallet token holdings (price + 24h change + quantity) | address, chainId, offset | node <skill-dir>/scripts/cli.mjs positions '{"address":"0x...","chainId":"56","offset":0}' |

Rules

  • offset is required on every call — including the first page. Pass 0 to fetch the first page; increment for subsequent pages. Omitting it causes an upstream validation error.
  • Pagination: repeat with increasing offset until data.list is empty or shorter than the page size.
  • Icon URL prefix: icon is a relative path (e.g., /images/web3-data/public/token/logos/xxxx.png). Prepend https://bin.bnbstatic.com to render.
  • Numbers as strings: price, percentChange24h, remainQty are strings — convert to numbers before arithmetic.

Full CLI Reference

See references/cli.md for per-subcommand invocations, parameter tables, return-field tables, and real response samples.