โ ๏ธ Create a new Tron address (deprecated)
Code samples
POST /api/v1/trx/account
curl -X POST 'https://settla.net/api/v1/trx/account' \
-H 'X-API-Key: $SETTLA_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"index": 0
}'
DEPRECATED, shutdown 2026-12-01. Generates a new TRX address and credentials, i.e. it produces a private key and a mnemonic on the server; the service does not store or handle client keys.
Replacement: build the transaction with POST /api/v1/trx/transactions/create, sign it on your side and submit it with POST /api/v1/trx/transactions/broadcast. Addresses without any private key are available for ETH and BTC via /api/v1/{eth,btc}/xpub.
Body parameter
{
"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": "TWHdzxwX6144Btjk1hvrRcVdiagwvUHika",
"private_key": "<64 hex characters>",
"public_key": "<130 hex characters>",
"mnemonic": "<12 words, only when the server generated them>"
}
400 Response
{
"error": "Invalid mnemonic."
}
500 Response
{
"error": "Failed to generate address."
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Generated address credentials | Inline |
| 400 | Bad Request | The supplied mnemonic could not be parsed | Inline |
| 500 | Internal Server Error | Failed to generate address | Inline |
๐ 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. |
Status Code 400
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป error | string | false | none | none |
| ยป details | object | false | none | Present only on a few validation errors. |
Status Code 500
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป error | string | false | none | none |
| ยป details | object | false | none | Present only on a few validation errors. |