Skip to content

To get the TRC20 token balance

TIP

To get the TRC20 token balance of a user's wallet on the TRON network, each different token uses a different contract.

URL

sh
/tron/trc20_balance?address=TVbo8fGRDmaiitf1JhpDhai5bLLxBwWpPt&contract_address=TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3

Request Method

GET

Query Parameters Translation

Parameter NameExample ValueData TypeRequiredDescription
addressTVbo8fGRDma...Stringwallet address
contract_addressTF17BgPaZYbz...StringToken contract address

Response

  • success(200)
json

{
    "code": 0,
    "data": 970000000000000000000,
    "msg": "success"
}
  • fail(404)
json
No data available
Parameter NameExample ValueData TypeDescription
code0Number-
data970000000000000000000Numberbalance
msgsuccessString-

Test network

Tokencontract address
JSTTF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3
WINTU2T8vpHZhCNY8fXGVaHyeZrKm8s6HEXWe

Main network

Tokencontract address
USDT-

Released under the MIT License.