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
| Name | Type | Description | Required |
|---|---|---|---|
secretPhrase | string | Account passphrase | Yes |
Response
{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"publicKey": "abc123...",
"privateKey": "def456...",
"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) |
privateKey | string | Private key (hex) — never share this value |
Error Codes
| Code | Description |
|---|---|
| 7 | Missing parameter - secretPhrase not provided |
Example
curl "http://localhost:22024/nxt?requestType=getShamwariQKP&secretPhrase=your_passphrase"