Skip to main content

GetShamwariQKP

Derives ShamwariQKP cryptographic keys from a secret passphrase. Returns the account ID, public key, and private key in SHAMWARI address format.

Request

GET /nxt?requestType=getShamwariQKP

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
secretPhrasestringAccount passphraseYes

Response

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

Response Fields

FieldTypeDescription
accountstringAccount ID
accountRSstringAccount Reed-Solomon address in SHAMWARI format
publicKeystringPublic key (hex)
privateKeystringPrivate key (hex) — never share this value

Error Codes

CodeDescription
7Missing parameter - secretPhrase not provided

Example

curl "http://localhost:22024/nxt?requestType=getShamwariQKP&secretPhrase=your_passphrase"