Get contracts status

Retrieves the deployment status of multiple smart contracts.


GET
/extended/v2/smart-contracts/status

Query Parameters

contract_idarray<Smart Contract ID> & Smart Contract ID

Response Body

curl -X GET "https://api.hiro.so/extended/v2/smart-contracts/status?contract_id=SP000000000000000000002Q6VF78.pox-3"
fetch("https://api.hiro.so/extended/v2/smart-contracts/status?contract_id=SP000000000000000000002Q6VF78.pox-3")
package main

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

func main() {
  url := "https://api.hiro.so/extended/v2/smart-contracts/status?contract_id=SP000000000000000000002Q6VF78.pox-3"

  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.hiro.so/extended/v2/smart-contracts/status?contract_id=SP000000000000000000002Q6VF78.pox-3"

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

print(response.text)
{
  "property1": {
    "found": true,
    "result": {
      "status": "string",
      "tx_id": "string",
      "contract_id": "string",
      "block_height": 0
    }
  },
  "property2": {
    "found": true,
    "result": {
      "status": "string",
      "tx_id": "string",
      "contract_id": "string",
      "block_height": 0
    }
  }
}
{
  "error": "string",
  "message": "string"
}