- APIs
- Stacks Blockchain API
- Name Zonefile
Get name zone file
Retrieves the zone file for a specific name.
GET
Parameters
Path Parameters
name
REQUIRED
string fully-qualified name
Query Parameters
unanchored
boolean Include data from unanchored (i.e. unconfirmed) microblocks
Status code | Description |
---|---|
200 | Fetch a user's raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files. |
4XX | Error |
cURL
curl -L \"https://api.hiro.so/v1/names/{name}/zonefile?unanchored=true" \-H 'Accept: application/json'
Response
{"zonefile": "$ORIGIN bar.test\n$TTL 3600\n_https._tcp URI 10 1 \"https://gaia.blockstack.org/hub/17Zijx61Sp7SbVfRTdETo7PhizJHYEUxbY/profile.json\"\n"}