Version
Show / Hide Table of Contents

getblockcount Method

Gets the number of blocks in the main chain.

Example

Request body:

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

Response body:

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