New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

1 min read

Method /api/v1/block/hash/{height} undefined ()
connect with REST protocol

/api/v1/block/hash/{height}

info-circle-fill

Method not allowed

info-circle-fill

Fetch block hash for block at a given height

Parameters

height - path

integer

block height

Request

curl --location --request GET 'https://ont.getblock.io/mainnet/rest/api/v1/block/hash/16242872' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 

Response

{
    "Action": "getblockhash",
    "Desc": "SUCCESS",
    "Error": 0,
    "Result": "d68a50c85d2ebe3e9c7b1613af3d588c65a64c1fa3043e58d4c6b70b51f5490e",
    "Version": "1.0.0"
}
banner icon

Start Building with GetBlock RPCs for Free