POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
validateaddress
wallet/validateaddress
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/validateaddress \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",
  "visible": true
}'
{
  "result": true,
  "message": "<string>"
}
TRON API method that validates whether a given address is a valid TRON address. This method checks the format and structure of the address to ensure it conforms to TRON’s address specifications.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • address — the TRON address to validate. Can be in base58 or hex format.
  • visible — optional boolean parameter. When set to true, the address is expected in base58 format (T-address). When false or omitted, hex format is expected. Default is false.

Response

  • result — boolean indicating whether the address is valid (true) or invalid (false).
  • message — hexadecimal representation of the address if valid, or error message if invalid.

Use case

The wallet/validateaddress method is essential for:
  • Validating user input before processing transactions to prevent errors.
  • Verifying addresses received from external sources or user interfaces.
  • Implementing address validation in wallets and DApps to ensure data integrity.
  • Checking address format compatibility between base58 and hex representations.

Body

application/json

Response

200 - application/json

Address validation result

The response is of type object.