query-address-info

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Query Address Info Skill

查询地址信息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
本Skill可查询任意链上钱包地址的代币持仓信息,支持:
  • 列出钱包地址持有的所有代币
  • 每个代币的当前价格
  • 24小时价格涨跌幅百分比
  • 持仓数量

API Endpoint

API端点

Query Wallet Token Balance

查询钱包代币余额

Method: GET
URL:
https://web3.binance.com/bapi/defi/v3/public/wallet-direct/buw/wallet/address/pnl/active-position-list
Request Parameters:
ParameterTypeRequiredDescription
addressstringYesWallet address, e.g.,
0x02e9b4708d41ca10632918edd9e94e21edd82ed1
chainIdstringYesChain ID, e.g.,
56
(BSC),
1
(ETH),
8453
(Base)
offsetnumberNoPagination offset, default 0
Request Headers:
clienttype: web
clientversion: 1.2.0
Accept-Encoding: identity
Example Request:
bash
curl --location 'https://web3.binance.com/bapi/defi/v3/public/wallet-direct/buw/wallet/address/pnl/active-position-list?address=0x02e9b4708d41ca10632918edd9e94e21edd82ed1&chainId=56&offset=0' \
--header 'clienttype: web' \
--header 'clientversion: 1.2.0' \
--header 'Accept-Encoding: identity'
Response Example:
json
{
    "code": "000000",
    "message": null,
    "messageDetail": null,
    "data": {
        "offset": 0,
        "addressStatus": null,
        "list": [
            {
                "chainId": "56",
                "address": "0x02e9b4708d41ca10632918edd9e94e21edd82ed1",
                "contractAddress": "0xe97b7ba92e5058d0456894ff6f969683cfd44444",
                "name": "The Giraffes",
                "symbol": "GIRAFFES",
                "icon": "/images/web3-data/public/token/logos/A0B22474BF610AE1646962D05D2BE933.png",
                "decimals": 18,
                "price": "0.0000045375251839978",
                "percentChange24h": "6.84",
                "remainQty": "20"
            }
        ]
    },
    "success": true
}
Response Fields:
FieldTypeDescription
chainIdstringChain ID
addressstringWallet address
contractAddressstringToken contract address
namestringToken name
symbolstringToken symbol
iconstringToken icon URL path
decimalsnumberToken decimals
pricestringCurrent price (USD)
percentChange24hstring24-hour price change (%)
remainQtystringHolding quantity
请求方法: GET
请求URL:
https://web3.binance.com/bapi/defi/v3/public/wallet-direct/buw/wallet/address/pnl/active-position-list
请求参数:
参数名类型是否必填描述
addressstring钱包地址,例如:
0x02e9b4708d41ca10632918edd9e94e21edd82ed1
chainIdstring链ID,例如:
56
(BSC)、
1
(ETH)、
8453
(Base)
offsetnumber分页偏移量,默认值为0
请求头:
clienttype: web
clientversion: 1.2.0
Accept-Encoding: identity
请求示例:
bash
curl --location 'https://web3.binance.com/bapi/defi/v3/public/wallet-direct/buw/wallet/address/pnl/active-position-list?address=0x02e9b4708d41ca10632918edd9e94e21edd82ed1&chainId=56&offset=0' \
--header 'clienttype: web' \
--header 'clientversion: 1.2.0' \
--header 'Accept-Encoding: identity'
响应示例:
json
{
    "code": "000000",
    "message": null,
    "messageDetail": null,
    "data": {
        "offset": 0,
        "addressStatus": null,
        "list": [
            {
                "chainId": "56",
                "address": "0x02e9b4708d41ca10632918edd9e94e21edd82ed1",
                "contractAddress": "0xe97b7ba92e5058d0456894ff6f969683cfd44444",
                "name": "The Giraffes",
                "symbol": "GIRAFFES",
                "icon": "/images/web3-data/public/token/logos/A0B22474BF610AE1646962D05D2BE933.png",
                "decimals": 18,
                "price": "0.0000045375251839978",
                "percentChange24h": "6.84",
                "remainQty": "20"
            }
        ]
    },
    "success": true
}
响应字段:
字段名类型描述
chainIdstring链ID
addressstring钱包地址
contractAddressstring代币合约地址
namestring代币名称
symbolstring代币符号
iconstring代币图标URL路径
decimalsnumber代币精度
pricestring当前价格(美元)
percentChange24hstring24小时价格涨跌幅(%)
remainQtystring持仓数量

Supported Chains

支持的链

Chain NamechainId
BSC56
Ethereum1
Base8453
SolanaCT_501
链名称chainId
BSC56
Ethereum1
Base8453
SolanaCT_501

Use Cases

使用场景

  1. Query Wallet Assets: When users want to view tokens held by a wallet address
  2. Track Holdings: Monitor wallet token positions
  3. Portfolio Analysis: Understand wallet asset allocation
  1. 查询钱包资产: 当用户想要查看某个钱包地址持有的代币时
  2. 追踪持仓: 监控钱包的代币持仓情况
  3. 投资组合分析: 了解钱包的资产分配情况

Notes

注意事项

  1. Icon URL requires full domain prefix:
    bin.bnbstatic.com
    + icon path
  2. Price and quantity are string format, convert to numbers when using
  3. Use offset parameter for pagination
  1. 图标URL需要添加完整域名前缀:
    bin.bnbstatic.com
    + 图标路径
  2. 价格和数量为字符串格式,使用时请转换为数字类型
  3. 可使用offset参数进行分页查询