--- title: getBalance description: "Gets an account's TRX balance for a Base58 or hex address, returning the amount in SUN." keywords: ["getbalance", "trx", "account balance", "trx balance", "sun", "tronweb"] --- # getBalance Get the account's balance of TRX, and display the TRX balance in SUN ## Usage ```js tronWeb.trx.getBalance(address); ``` ## Parameters Address string(in either HexString or Base58 format) ## Return Number - The account's TRX balance in SUN. ## Example ```js //Parameter Base58 await tronWeb.trx.getBalance('TTSFjEG3Lu9WkHdp4JrWYhbGP6K1REqnGQ'); // output-start 29887074430 // output-end //Parameter HexString await tronWeb.trx.getBalance('41BF97A54F4B829C4E9253B26024B1829E1A3B1120'); // output-start 29340074430 // output-end ```