Skip to main content

getheight

Returns the daemon's current blockchain height. This is a legacy plain-HTTP endpoint, not a JSON-RPC method — POST directly to /getheight (not /json_rpc), and the body/response have no jsonrpc/method/id envelope.

Request

POST http://127.0.0.1:11232/getheight
{}

This method takes no parameters.


Response

{
"height": 2116212,
"status": "OK"
}

Response information

  • height - the current blockchain height (the height of the next block to be added, i.e. one more than the top block's height).
  • status - "OK" on success. The daemon returns "BUSY" instead while it's still synchronizing with the network.