ONT
POST
GET
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}
Method not allowed
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"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }