validateaddress - Tron
validateaddress. Validates whether a given string is a properly formatted Tron address.
validateaddress - tron [Value: 20CU]
Validates whether a given string is a properly formatted Tron address.
Use cases
- Available as a GET
- Filter malformed addresses out of a batch import
Constraints
- Only checks format and checksum, not whether the address has any on-chain activity
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/tron/{API-KEY}/wallet/validateaddress \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true}'Response
200
{
"result": true,
"message": ""
}Request params
idinteger
jsonrpcstring
methodstring
object
addressstring
[Required] The address string to validate
visibleboolean
Set to true to format addresses in Base58; set to false for hex format. (Default: false)
Response
200
Validates whether a given string is a properly formatted Tron address.Response params
object
resultboolean
Whether the address is a valid, well-formed Tron address
messagestring
Hex-encoded explanation when result is false