getblockhash

Returns hash of block in best-block-chain at height provided.

Argument #1 - height

Type: numeric, required

The height index

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": "getblockhash",
    "params": [
        1000
    ]
}'

Response

"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"

Last updated