getblockcount

Returns the number of blocks in the longest blockchain.

Example:

Request body:

{
   "jsonrpc": "2.0",
   "method": "getblockcount",
   "params":[],
   "id": 1
}
Response body:

{
   "jsonrpc": "2.0",
   "id": 1,
   "result": 219513
}

Last updated