Skip to content

wallet-cli account balance

Show the native coin balance.

Synopsis

wallet-cli account balance [options]

Description

Fetches the native coin balance of the active account (or --account) from the node. Read-only; no unlock needed.

Which coin, and how much of it, follow the selected network: the balance is reported in the chain's base unit (SUN on TRON, wei on EVM), decimals comes from the chain family, and symbol comes from the network — eip155:1 and eip155:56 are one family with two coins, ETH and BNB.

Options

Only the global options (--account, --network, …).

Examples

wallet-cli account balance --network tron:3448148188
Label    demo
Balance  9,915.80311 TRX
wallet-cli account balance --network tron:3448148188 -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"account.balance","data":{"address":"TNmoJ3Be59WFEq5dsW6eCkZjveiL3G8HVB","balance":"9915803110","decimals":6,"symbol":"TRX"},"meta":{"durationMs":681,"warnings":[]},"chain":{"family":"tron","network":"tron:3448148188","chainId":"3448148188"}}

The same command on an EVM network reads that account's EVM address instead:

wallet-cli account balance --network eip155:11155111 -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"account.balance","data":{"address":"0x541B10b92b45C08513e67bb8209f035D810212B6","balance":"0","decimals":18,"symbol":"ETH"},"meta":{"durationMs":234,"warnings":[]},"chain":{"family":"evm","network":"eip155:11155111","chainId":"11155111"}}

Output

Field Type Meaning
address string Queried address, in the selected network's format (base58 on TRON, 0x hex on EVM)
balance string Raw balance in the chain's base unit — SUN on TRON ("9915803110" = 9915.80311 TRX), wei on EVM
decimals number Base units per coin: 6 on TRON, 18 on EVM
symbol string The network's native coin — TRX, ETH, BNB

Exit status

0 · 1 execution failure (node unreachable, timeout) · 2 usage error.

See also

account portfolio — includes tokens · account info · Units: TRX vs SUN