getblockcount

getblockcount

Provides the height of the fully-validated chain with the most accumulated work.

The genesis block is assigned a height of 0.

Result

Name

Type

Description

n

numeric

The current block count

Examples

bitcoinevo-cli getblockcount
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:7332/