tron-api-python icon indicating copy to clipboard operation
tron-api-python copied to clipboard

API does not give Tether balance for any address

Open ShilazTech opened this issue 6 years ago • 1 comments
trafficstars

I am using below code to get token balance for an address:

`full_node = 'https://api.trongrid.io' solidity_node = 'https://api.trongrid.io' event_server = 'https://api.trongrid.io'

tron = Tron(full_node=full_node, solidity_node=solidity_node, event_server=event_server)

tron.private_key = 'my private key' #tron.default_address = 'TQR27jXR4dHdDtjE63MnnUQvecK97rop2y'

account_info = tron.trx.get_account('TNaRAoLUyYEV2uF7GUrzSjRQTU8v5ZJ5VR')

print(account_info) print(pd.DataFrame(account_info["asset"]))`

it does provide a dataframe of assets but tether balance is not there. And checked that this address has tether balance.

Pls help me out. thnx

ShilazTech avatar Nov 20 '19 17:11 ShilazTech

You can send request to URL = 'https://apilist.tronscan.org/api/account?address='. This URL response with all TRC20 tokens that the account has.

parizad1188 avatar Apr 09 '20 11:04 parizad1188