Get PoX cycle
Retrieves details for a PoX cycle.
Path Parameters
cycle_numberinteger
PoX cycle number
Response Body
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
block_heightinteger
index_block_hashstring
cycle_numberinteger
total_weightinteger
total_stacked_amountstring
total_signersinteger
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
errorstring
message?string
[key: string]any
curl -X GET "https://api.hiro.so//extended/v2/pox/cycles/0"
fetch("https://api.hiro.so//extended/v2/pox/cycles/0")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.hiro.so//extended/v2/pox/cycles/0"
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/pox/cycles/0"
response = requests.request("GET", url)
print(response.text)
{
"block_height": 0,
"index_block_hash": "string",
"cycle_number": 0,
"total_weight": 0,
"total_stacked_amount": "string",
"total_signers": 0
}
{
"error": "string",
"message": "string"
}