Rest API

All the endpoints return a JSON encoded object.

Base URL: https://v3.znsconnect.io/api

1. Resolve Domain

Endpoint:

GET
/resolveDomain?tld=<CHAIN_TLD>&domain=<YOUR_DOMAIN>

Query Parameters:

NameTypeDescription

tld

String

tld of the domain

chain

String

Base part of domain without the tld

Request URL Example:

GET
v3.znsconnect.io/api/resolveDomain?tld=honey&domain=tonystark

Response:

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

2. Resolve Address

Endpoint:

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

Query Parameters:

NameTypeDescription

tld

String

tld of the domain

address

String

Address to look for

Request URL Example:

GET
v3.znsconnect.io/api/resolveAddress?tld=honey&address=0x9DaA27Ba25B1fa267Fe46D9C9F8b3676A5bc7D1c

Response:

{
  "code": 200,
  "primaryDomain": "tonystark",
  "userOwnedDomains": [
    "tonystark",
    "nickfury",
    "thorodinsson"
  ]
}

Last updated