๐ Create a new Tron address
Code samples
POST /api/v1/trx/account
Generates a new TRX address and credentials. Optionally from a provided mnemonic.
Body parameter
{
"mnemonic": "string",
"index": 0
}
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | false | none |
| ยป mnemonic | body | string | false | Optional mnemonic phrase. |
| ยป index | body | integer | false | Optional derivation index for BIP44 (defaults to legacy derivation if not provided). |
Example responses
200 Response
{
"address": "string",
"private_key": "string",
"public_key": "string",
"mnemonic": "string"
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Generated address credentials | Inline |
| 500 | Internal Server Error | Failed to generate address | None |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป address | string | false | none | none |
| ยป private_key | string | false | none | none |
| ยป public_key | string | false | none | none |
| ยป mnemonic | string | false | none | Only returned if generated by the server. |