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 從公開儲存庫中收錄這些內容。

檢舉或申請下架