GenerateAddress
Generates a random private key and address pair.
Returns a private key, the corresponding address in hex, and base58.
Important note
- This API call returns the randomly generated privateKey value in the JSON output. Please do not call this API provided by the public node. It is recommended to use offline address generation.
Request
curl --request GET
--url https://tron.api.watchdata.io/wallet/generateaddress \
--header 'Accept: application/json'Response
Response
{
"privateKey": "097c8ba8a310f39a41a667d35a20000cd21d58c7322484b584c4ada8ebd3ec06",
"address": "TLHx2Ta9WwtwDjgGxyeifHs5ipmJrJAbZ3",
"hexAddress": "41713ca8ee9c3db6bdc947b8e0c7846645307e6e63"
}
Last modified 1yr ago