Getbestblockhash

getbestblockhash

post

Returns the hash of the best block in the most-work fully-validated chain. The best block is the tip of the blockchain, representing the most recent block that has been validated and added to the chain.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 1.0
idstringRequired
methodstring · enumRequiredPossible values:
Responses
chevron-right
200

Valid response

application/json
resultstringOptional

A hex-encoded string representing the hash of the best block in the longest blockchain

errorobject · nullableOptional

An object containing an error message if an error occurred, otherwise null

idstringOptional

An integer representing the ID of the request, used to match requests with responses

post
/

Last updated