Get the network target block time
Retrieves the target block times for mainnet and testnet.
Response Body
GET request that returns network target block times
TypeScript Definitions
Use the response body type in TypeScript.
mainnetobject
testnetobject
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/v1/info/network_block_times"
fetch("https://api.hiro.so//extended/v1/info/network_block_times")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.hiro.so//extended/v1/info/network_block_times"
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/v1/info/network_block_times"
response = requests.request("GET", url)
print(response.text)
{
"mainnet": {
"target_block_time": 0
},
"testnet": {
"target_block_time": 0
}
}
{
"error": "string",
"message": "string"
}