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
| Name | Type | Required | Description |
|---|---|---|---|
account | string | Yes | Account ID (numeric) or Reed-Solomon address (SHAMWARI-XXXX-XXXX-XXXX-XXXXX). |
Response
{
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOP",
"accountLongId": "1234567890123456789"
}
Response Fields
| Field | Type | Description |
|---|---|---|
account | string | Account ID as unsigned string. |
accountRS | string | Reed-Solomon (SHAMWARI format) address. |
accountLongId | string | Account ID as long value. |
Error Responses
| Condition | Response |
|---|---|
| Missing account parameter | JSONResponses.MISSING_ACCOUNT |
| Invalid account format | JSONResponses.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"