API does not give Tether balance for any address
ShilazTech opened this issue · 1 comments
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
You can send request to URL = 'https://apilist.tronscan.org/api/account?address='.
This URL response with all TRC20 tokens that the account has.