DeriveAccountFromSeed
Derives a Shamwari account from a seed phrase, returning the account ID and public key.
Request
GET /nxt?requestType=deriveAccountFromSeed
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
seedPhrase | string | Seed phrase (12-24 words) | Yes |
Response
{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"publicKey": "abc123...",
"errorCode": 0,
"errorDescription": ""
}
Response Fields
| Field | Type | Description |
|---|---|---|
account | string | Account ID |
accountRS | string | Account Reed-Solomon address in SHAMWARI format |
publicKey | string | Public key (hex) |
Error Codes
| Code | Description |
|---|---|
| 7 | Missing parameter - seedPhrase not provided |
Example
curl "http://localhost:22024/nxt?requestType=deriveAccountFromSeed&seedPhrase=word1 word2 word3..."