wallet-cli token info

July 16, 2026 · View on GitHub

Show token metadata (name / symbol / decimals / totalSupply).

Synopsis

wallet-cli token info (--contract <address> | --asset-id <id>) [options]

Description

Fetches a token's metadata straight from the chain — a pure RPC read that never touches your accounts. Pass exactly one selector: --contract for TRC20, --asset-id for TRC10.

Options

OptionDescription
--contract <string>TRC20 contract address; exactly one of --contract / --asset-id
--asset-id <string>TRC10 numeric asset id; exactly one of --asset-id / --contract

Plus the global options.

Examples

wallet-cli token info --contract TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf --network tron:nile
Name      Tether USD
Symbol    USDT
Decimals  6
wallet-cli token info --contract TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf --network tron:nile -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"token.info","data":{"contract":"TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf","name":"Tether USD","symbol":"USDT","decimals":6,"totalSupply":"17600000000030000000"},"meta":{"durationMs":15,"warnings":[]},"chain":{"family":"tron","network":"tron:nile","chainId":"nile"}}

Output

FieldTypeMeaning
contractstringTRC20 contract address (or assetId for TRC10)
namestringToken name
symbolstringToken symbol
decimalsnumberToken decimals
totalSupplystringTotal supply, raw integer in base units

Exit status

0 success · 1 execution failure (token_metadata_unavailable — the contract does not expose ERC20-style metadata; rpc_error) · 2 usage error (invalid_value).

See also

token add · token balance · contract info