Last updated 5 months ago
Was this helpful?
Retrieves a Bitcoin block hash for a given block height.
This method will use 10 .
10
block height- string, required.
block height
Example: 785365
785365
GET /api/v2/block-index/<block height>
{ "blockHash": "00000000000000000004a49543c0b6e2043e67b513c0d9100fbdf91f662c3ad1" }
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/api/v2/block-index/785365 \ -X GET \ -H "Content-Type: application/json"
curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/api/v2/block-index/785365 \ -X GET \ -H "Content-Type: application/json"