Skip to main content

RS Convert

Converts an account ID to its Reed-Solomon (SHAMWARI-XXXX-XXXX-XXXX-XXXXX) address representation and vice versa. Returns both formats for convenience.

Request

GET /nxt?requestType=rsConvert&account=<accountValue>

Parameters

NameTypeRequiredDescription
accountstringYesAccount ID (numeric) or Reed-Solomon address (SHAMWARI-XXXX-XXXX-XXXX-XXXXX).

Response

{
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOP",
"accountLongId": "1234567890123456789"
}

Response Fields

FieldTypeDescription
accountstringAccount ID as unsigned string.
accountRSstringReed-Solomon (SHAMWARI format) address.
accountLongIdstringAccount ID as long value.

Error Responses

ConditionResponse
Missing account parameterJSONResponses.MISSING_ACCOUNT
Invalid account formatJSONResponses.INCORRECT_ACCOUNT

Notes

  • This endpoint does not require the blockchain to be running (requireBlockchain = false).
  • Not chain-specific.
  • Does not require admin password authentication (requirePassword = false).

Source: RSConvert.java.

Example

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