Get a chainhook status

Retrieve the status of a specific chainhook through the Hiro Platform.


GET
/v1/ext/{apiKey}/chainhooks/{chainhookUuid}/status

Path Parameters

apiKeystring

Hiro API key

chainhookUuidstring

Chainhook UUID

Response Body

curl -X GET "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed/status"
fetch("https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed/status")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed/status"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed/status"

response = requests.request("GET", url)

print(response.text)
{
  "status": {
    "info": {
      "expired_at_block_height": 0,
      "last_evaluated_block_height": 0,
      "last_occurrence": 0,
      "number_of_blocks_evaluated": 0,
      "number_of_times_triggered": 0
    },
    "type": "string"
  },
  "enabled": true
}
Empty