Up to 50% Off on Your First Month

Subscribe by April 30th with a credit card and save big!

Sale bannerSale banner

Last updated on January 1, 1970

1 min read

Method /api/v1/block/hash/{height} Ontology (ONT)
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"
}