Query Address Info

作者 binance9960c675387b无许可证1K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3周前更新

Snapshot of a single wallet's token holdings on a specific chain — list of every token currently held with name, symbol, current price, 24h price change, and holding quantity. Use when the user provides an explicit wallet address (or says "my wallet") and wants the current portfolio: "what does 0x... hold", "wallet balance breakdown", "list positions for this address", "what tokens are in this wallet", "show me the holdings of <address>".

包含脚本Data & Analytics
AI 生成的概览

通过 CLI 脚本查询钱包地址的代币持仓、价格、24 小时涨跌幅和数量。

功能
该技能查询单个链上钱包地址,返回其当前持有的代币,包括每个代币的名称、符号、当前价格、24 小时价格涨跌幅和持仓数量。它支持 BSC、Solana、Base 和 Ethereum,并通过 offset 分页,直到返回列表为空或不足一页。它附带一个可执行的 Node 脚本用于执行查询,以及一份描述该 CLI 的参考文档。
适用场景
当用户提供明确的钱包地址,或提到“我的钱包”,并希望了解当前持仓明细时使用。典型请求包括列出某地址的持仓、展示钱包余额构成,或询问某钱包持有哪些代币。
运行要求
需要 Node.js 运行时来运行随附的 scripts/cli.mjs 脚本,并需要访问上游数据服务的网络连接。每次调用都需要提供 address、chainId 和 offset 参数。

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 intentCommand
List a wallet's token holdings with price and 24h changepositions

Supported Chains

ChainchainId
BSC56
SolanaCT_501
Base8453
Ethereum1

How to Call APIs

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

Commands

CommandPurposeRequired argsExample
positionsList wallet token holdings (price + 24h change + quantity)address, chainId, offsetnode <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 [blocked] for per-subcommand invocations, parameter tables, return-field tables, and real response samples.

来源与署名

来源:binance/binance-skills-hub位于skills/binance-web3/query-address-info提交9960c67

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架