Get Account Web Wallet Token Info
1. Overview & Typical Use
Query the token list held and followed by a specified account in the web wallet, including balances, valuations, and token metadata.
- Typical use: wallet asset overview, token holdings display, portfolio valuation calculation.
- When not to use: for transfer details of a specific token use the corresponding transfer list endpoint; for resource info use “Get Unfreezable TRX Amount for an Address”.
2. Endpoint & Authentication
GET /api/account/wallet
For Base URL and authentication, see Common Network & Authentication.
This endpoint requires an API Key: calls without a Key return 401.
3. Request
Fields
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
address | string | Yes | — | Address to query |
4. Response
Fields
Top-level
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
code | integer | Required | Status code | — |
status | string | Required | Status identifier | — |
message | string | Required | Request result message | — |
count | integer | Required | Number of tokens | — |
data | array | Required | Token list array; see below | — |
totalValueInUsd | number | Required | Total valuation of all tokens (float) | USD |
lastUpdateSeconds | integer | Required | Last data update time | Millisecond timestamp |
data[] elements
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
token_id | string | Required | Token ID (_ for TRX) | — |
token_abbr | string | Required | Token abbreviation | — |
token_name | string | Required | Token name | — |
token_type | integer | Required | Token type: 0 TRX, 10 TRC10, 20 TRC20 | — |
token_decimal | integer | Required | Token decimal places | — |
balance | string | Required | Token balance (converted) | — |
token_value | string | Required | Token valuation | TRX |
token_value_in_usd | string | Required | Token valuation | USD |
token_price_in_usd | string | Required | Token unit price | USD |
token_price | string | Required | Token unit price | TRX |
level | integer | string | Required | Token level (TRX = integer, TRC10 may be string) | — |
vip | boolean | Required | Whether a VIP token | — |
token_url | string | Optional | Token icon URL; only present for tokens with a logo | — |
frozen | integer | Optional | Stake 1.0 frozen amount; only for TRX type | sun |
frozenV2 | integer | Optional | Stake 2.0 frozen amount; only for TRX type | sun |
frozen_token_value_in_usd | number | string | Optional | Stake 1.0 frozen USD valuation; only for TRX type | USD |
frozenV2_token_value_in_usd | number | string | Optional | Stake 2.0 frozen USD valuation; only for TRX type | USD |
pair_id | integer | Optional | Trading pair ID; present for tokens with price data | — |
transferCount | integer | Optional | Transfer count; common for tokens without a quote | — |
nrOfTokenHolders | integer | Optional | Holder count; common for tokens without a quote | — |
5. Errors
For HTTP status codes, see Common Errors. Notes for this endpoint:
- API Key Required: returns 401 if not provided (see Common Network & Authentication).
- Missing required parameter:
addressis required; omitting it returns400({"message":"some parameters are invalid or out of range"}), not 401. - Empty result is not an error: no token holdings returns
200+data: [], which is a normal response.
Last updated on: