Query Token Info

作者 binance9960c675387b無授權條款1K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫3 週前更新

Per-token details for a specific token identified by keyword, symbol, or contract address: (1) search — find tokens by keyword/symbol/contract; (2) meta — static info: name, symbol, logo, social links, creator, official website; (3) dynamic — real-time market data: price, 24h change, volume, holder count, liquidity; (4) kline — OHLCV candlestick data for technical analysis. Use for: "price of $X", "search for token Y", "kline chart for $Z", "who created $W", "social links for $V", "holder count of $U", "candlestick data", "find the contract address of <token>".

包含腳本Data & Analytics
AI 產生的概覽

唯讀命令列工具,用於查詢代幣詳情:搜尋、中繼資料、即時行情與 K 線資料。

功能
透過一個 Node 命令列工具提供四個唯讀代幣端點:依關鍵字、符號或合約地址搜尋代幣;取得名稱、符號、圖示、社群連結與建立者等靜態中繼資料;取得價格、24 小時漲跌、成交量、持有人數量與流動性等即時行情資料;以及拉取用於圖表分析的 OHLCV K 線資料。它支援以太坊、BSC、Base 與 Solana,行情數值欄位以字串回傳,K 線資料為二維陣列。
適用情境
當需要尋找代幣、查詢合約地址、查看中繼資料或社群連結、了解目前價格與市場統計,或取得用於技術分析的 K 線資料時使用。
執行需求
需要 Node.js 來執行隨附的 scripts/cli.mjs。需要網路存取以連線代幣資料服務,圖示欄位為相對路徑,需加上服務主機前綴才能使用。

Query Token Info Skill

Overview

Four read-only token endpoints fronted by one CLI. The agent picks a subcommand and passes a JSON blob; with this skill user can:

Search Tokens: Find tokens by name, symbol, or contract address across chains. Token Research: Get token metadata, social links, and creator info. Market Analysis: Real-time price, volume, holder distribution, and liquidity data. Chart Analysis: K-Line candlestick data for technical analysis.

When to Use This Skill

User intentCommand
Search a token by keyword, symbol, or contract addresssearch
Get static metadata (name, symbol, logo, social links, creator)meta
Get real-time market data (price, volume, holders, liquidity)dynamic
Get candlestick chart / OHLCV datakline

Supported Chains

ChainchainId
Ethereum1
BSC56
Base8453
SolanaCT_501

All four commands (search, meta, dynamic, kline) use the same chainId values.

How to Call APIs

bash
node <skill-dir>/scripts/cli.mjs <command> '<json_params>'

Example:

bash
node <skill-dir>/scripts/cli.mjs search '{"keyword":"<keyword>","chainIds":"56"}'

Commands

CommandPurposeRequired argsExample
searchSearch tokens by keywordkeyword (optional: chainIds, orderBy)node <skill-dir>/scripts/cli.mjs search '{"keyword":"<keyword>","chainIds":"1,56,8453,CT_501"}'
metaStatic token metadatachainId, contractAddressnode <skill-dir>/scripts/cli.mjs meta '{"chainId":"56","contractAddress":"0x..."}'
dynamicReal-time market datachainId, contractAddressnode <skill-dir>/scripts/cli.mjs dynamic '{"chainId":"56","contractAddress":"0x..."}'
klineCandlestick datachainId, contractAddress, interval (optional: limit, from, to, pm)node <skill-dir>/scripts/cli.mjs kline '{"chainId":"56","contractAddress":"0x...","interval":"1min","limit":500}'

Rules

  • Icon URL: icon fields are relative paths. Prepend https://bin.bnbstatic.com for a usable URL.
  • Numbers as strings: All numeric market fields (price, volume24h, marketCap, etc.) are returned as strings. Convert before arithmetic.
  • Kline is a 2D array, not JSON objects. Each candle: [open, high, low, close, volume, timestamp_ms, count].
  • Kline time window: limit takes priority over from when both are provided. Use to with limit to fetch the N most recent candles ending at to. pm selects price (p, default) or market-cap (m) series.
  • Intervals supported by kline: 1s, 1min, 3min, 5min, 15min, 30min, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1m.

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-token-info提交9960c67

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架