# GenerateAddress

Generates a random private key and address pair. Returns a private key, the corresponding address in hex, and base58.（there is a security risk. This interface service has been shutdown by the Trongrid. Please use the offline mode or the node deployed by yourself.）

* 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.

**Example :**

**curl** --request GET\
\--url <http://172.104.51.182:16667/wallet/generateaddress>\
\--header 'Accept: application/json' &#x20;

**Response :**

`{`&#x20;

`"privateKey": "34da86ff6cb99a90716b840af95b42349c92d577b27c0e8476f4ee9c40ac4920", "address": "ASuFVNtVK2evFLHbHYv1KUNMUfEKMu68Dw",                                           "hexAddress":  "41b9ba8d34c3655e80dc38a129fed91a1ea14a757d"`

&#x20;`}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.aixchain.com/http-api/api-list/address-utilities/generateaddress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
