Check if trc20 address is a contract

Hi everyone! I need to check whether TRC20 address is contract or account. I assume, there is difference in hash between these types of addresses but I don’t know for sure. would greatly appreciate any info!

Best way to check that would be to use an tron blockchain explorer. https://explorer.just.money/ or tronscan

Just by decoding the address is not possible, the formatting is the same as regular accounts, but you can use the API.

https://api.trongrid.io/v1/accounts/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t (example with USDT contract) it returns a json with a bunch of keys, you need to look for “type”:“Contract” or “type”:“Active”