Get historical zone file
Retrieves the historical zone file for a specific name.
Path Parameters
namestring
fully-qualified name
zoneFileHashstring
zone file hash
Query Parameters
unanchored?boolean
Include data from unanchored (i.e. unconfirmed) microblocks
Default
false
Response Body
Fetches the historical zonefile specified by the username and zone hash.
TypeScript Definitions
Use the response body type in TypeScript.
zonefilestring
Error
TypeScript Definitions
Use the response body type in TypeScript.
errorstring
curl -X GET "https://api.hiro.so//v1/names/muneeb.id/zonefile/b100a68235244b012854a95f9114695679002af9?unanchored=true"
fetch("https://api.hiro.so//v1/names/muneeb.id/zonefile/b100a68235244b012854a95f9114695679002af9?unanchored=true")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.hiro.so//v1/names/muneeb.id/zonefile/b100a68235244b012854a95f9114695679002af9?unanchored=true"
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//v1/names/muneeb.id/zonefile/b100a68235244b012854a95f9114695679002af9?unanchored=true"
response = requests.request("GET", url)
print(response.text)
{
"zonefile": "string"
}
{
"error": "string"
}