phpcryptocurrencytron

How to programmatically validate Tether (TRC20) Wallet Addresses in PHP?


I am having an issue related to validating cryptocurrency wallet addresses, specifically USDT.

USDT can be validated either as a BTC or ETH address, depending on the network type.

Basically it goes like that:

I haven't managed to find a specific validation for USDT:TRC20 addresses and I am not sure how to validate them.


Solution

  • validating the address on your own is not preferred you should use an API like Tron protocol not only to check if the address is valid also to check if it's not a spam

    you need to check the documentation
    tronprotocol

    also check how to make http request
    here

    also Shielded TRC-20

    check this website as a reference