Page cover image

ZNS API

All the endpoints return a JSON encoded object.

Base URL: https://zns.bio/api

1. Resolve Domain

Endpoint:

GET
/resolveDomain?chain=<CHAIN_ID>&domain=<YOUR_DOMAIN>

Query Parameters:

Name
Type
Description

chain

Number

Chain id

domain

String

Domain to look for

Request URL Example:

GET
zns.bio/api/resolveDomain?chain=137&domain=haodev007

Response:

{
  "code": 200,
  "address": "0x181EB6D5D3fD8FbACcb422237197826c6ac70232"
}

2. Resolve Address

Endpoint:

GET
/resolveAddress?chain=<CHAIN_TLD>&address=<YOUR_ADDRESS>

Query Parameters:

Name
Type
Description

chain

Number

Chain id

address

String

Address to look for

Request URL Example:

GET
zns.bio/api/resolveAddress?chain=137&address=0x181EB6D5D3fD8FbACcb422237197826c6ac70232

Response:

{
  "code": 200,
  "primaryDomain": "cyberstorm",
  "userOwnedDomains": [
    "cyberstorm",
    "dontneedhelp",
    "enemymaycry",
    "residentevil"
  ]
}

Here is an example of partner integration

KiloEx Platform from Binance Labs

KiloEx integration of ZNS API

KiloEx integration of ZNS Rest API

The Trailblazers platform from Taiko Team

API integration of ZNS Taiko to Trailblazers portal

Link your wallet to the Trailblazers website to update your profile with your new domain names

Last updated

Was this helpful?