getBlockchainStatus
Retrieves information about the current blockchain state including height, last block, and blockchain state.
Endpoint
GET /nxt?requestType=getBlockchainStatus
Parameters
None
Request Example
curl "http://localhost:22024/nxt?requestType=getBlockchainStatus"
Response
{
"blockchainState": "ACTIVE",
"lastBlock": "12345678901234567890",
"height": 1000000,
"lastBlockHash": "hexHash",
"difficulty": "1234567890",
"target": "1234567890",
"generationSignature": "hexGenerationSignature",
"baseTarget": "1234567890",
"cumulativeDifficulty": "1000000000000000000000000000",
"requestProcessingTime": 5
}
Response Fields
| Field | Type | Description |
|---|---|---|
blockchainState | string | State: ACTIVE, DOWNLOADING, or READONLY |
lastBlock | string | Last block ID |
height | number | Last block height |
lastBlockHash | string | Last block hash |
difficulty | string | Current difficulty |
target | string | Current target |
generationSignature | string | Generation signature |
baseTarget | string | Base target |
cumulativeDifficulty | string | Cumulative difficulty |
Source
GetBlockchainStatus.java
Tags
BLOCKS