getBlockId
Retrieves the block ID (as an unsigned 64-bit number) at a specific height.
Endpoint
GET /nxt?requestType=getBlockId
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
height | int | Yes | Block height |
Request Example
curl "http://localhost:22024/nxt?requestType=getBlockId&height=1000000"
Response
{
"block": "12345678901234567890",
"requestProcessingTime": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
block | string | Block ID as an unsigned integer (decimal string) |
requestProcessingTime | number | API request processing time in milliseconds |
Errors
| Error | Description |
|---|---|
MISSING_HEIGHT | The height parameter was not provided |
INCORRECT_HEIGHT | The height value is not a valid integer or is out of range |
Source
GetBlockId.java
Tags
BLOCKS