Hex Convert
Converts between hexadecimal strings and text (UTF-8). Returns both directions in a single response.
Request
GET /nxt?requestType=hexConvert&string=<value>
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
string | string | Yes | Input string. Can be a hex-encoded string or plain text. |
Response
{
"text": "Hello World",
"binary": "48656c6c6f20576f726c64"
}
Response Fields
| Field | Type | Description |
|---|---|---|
text | string | Decoded text from hex input (if input is valid hex). |
binary | string | Hex-encoded representation of input text. |
Notes
- If the input cannot be parsed as hex,
textis omitted. - This endpoint does not require the blockchain to be running (
requireBlockchain = false). - Not chain-specific.
- Does not require admin password authentication (
requirePassword = false).
Source: HexConvert.java.
Example
curl "http://localhost:22024/nxt?requestType=hexConvert&string=48656c6c6f"