ONT
POST
GET
Last updated on January 1, 1970
1 min read
Method /api/v1/block/height/txhash/{hash} undefined ()
connect with REST protocol
/api/v1/block/height/txhash/{hash}
Method not allowed
Fetch block height using transaction hash
Parameters
hash
- path
Tranaction hash
Request
curl --location --request GET 'https://ont.getblock.io/mainnet/rest/api/v1/block/height/txhash/db81c4e00f050c4f8e2f9c7e8201fddebd18458b3c48c73c18aa0532c7b5c43c'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
Response
{
"Action": "getblockheightbytxhash",
"Desc": "SUCCESS",
"Error": 0,
"Result": 16224161,
"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" }