Get all namespaces
Retrieves a list of all namespaces known to the node.
Query Parameters
unanchored?boolean
Include data from unanchored (i.e. unconfirmed) microblocks
Default
false
Response Body
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
namespacesBnsGetAllNamespacesResponse
Fetch a list of all namespaces known to the node.
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
errorstring
message?string
[key: string]any
curl -X GET "https://api.hiro.so//v1/namespaces/?unanchored=true"
fetch("https://api.hiro.so//v1/namespaces/?unanchored=true")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.hiro.so//v1/namespaces/?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/namespaces/?unanchored=true"
response = requests.request("GET", url)
print(response.text)
{
"namespaces": [
"string"
]
}
{
"error": "string",
"message": "string"
}