getbestblockhash

Returns the hash of the best (tip) block in the most-work fully-validated chain.

Request

curl --location --request POST 'https://btc.api.watchdata.io/node/jsonrpc?api_key=your_api_key' \
--header 'x-api-key: your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getbestblockhash",
    "params": []
}'

Response

"0000000000000000000790dfb871f65afce714205ba48e8101e2992d56e48d00"

Last updated