Getblockcount

getblockcount

post

Returns the number of blocks in the longest blockchain. This number increases as new blocks are added.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 1.0
idstringRequired
methodstring · enumRequiredPossible values:
paramsarrayRequired

This method takes no parameters.

Responses
chevron-right
200

Current block height retrieved successfully

application/json
resultintegerOptional

The current block height (number of blocks in the best chain)

Example: 855000
errorobject · nullableOptional

Error object (null if successful)

idstringOptional

ID of the request

post
/

Last updated