Skip to main content

GetAccountPublicKey

Returns the public key associated with a Shamwari account.

Request

GET /nxt?requestType=getAccountPublicKey

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes

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
3Unknown account

Example

curl "http://localhost:22024/nxt?requestType=getAccountPublicKey&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"