Full Hash To Id
Converts a full hash (hex string) to a numeric long ID. This is useful for extracting the ID portion from a transaction or block full hash.
Request
GET /nxt?requestType=fullHashToId&fullHash=<hex>
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fullHash | string | Yes | Full hash as a hex-encoded string. |
Response
{
"longId": "1234567890123456789",
"stringId": "1234567890123456789"
}
Response Fields
| Field | Type | Description |
|---|---|---|
longId | string | Signed long ID (or negative if unsigned exceeds Long.MAX_VALUE). |
stringId | string | Unsigned string ID. |
Error Responses
| Condition | Response |
|---|---|
| Invalid hex string | JSONResponses.OVERFLOW (if parsing fails) |
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: FullHashToId.java.
Example
curl "http://localhost:22024/nxt?requestType=fullHashToId&fullHash=abc123..."