btc

Bitcoin (BTC)

Method: GET blockhashbyheight

dropdown

GET blockhashbyheight

Given a height: returns hash of block in best-block-chain at height provided.

Example

GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>

Request

curl --location --request GET 'https://btc.getblock.io/rest/blockhashbyheight/10.json' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json'

Response

{
    "blockhash":"000000002c05cc2e78923c34df87fd108b22221ac6076c18f3ade378a4d915e9"
}

GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

2019 - 2021 GetBlock