Skip to main content

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

NameTypeDescriptionRequired
seedPhrasestringSeed phrase (12-24 words)Yes

Response

{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"publicKey": "abc123...",
"errorCode": 0,
"errorDescription": ""
}

Response Fields

FieldTypeDescription
accountstringAccount ID
accountRSstringAccount Reed-Solomon address in SHAMWARI format
publicKeystringPublic key (hex)

Error Codes

CodeDescription
7Missing parameter - seedPhrase not provided

Example

curl "http://localhost:22024/nxt?requestType=deriveAccountFromSeed&seedPhrase=word1 word2 word3..."