GETGet DNS records

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/dns/records
CU30

Query DNS records matching the specified filters. Supports .ton and .t.me records.

Query Parameters
walletstring

Wallet address in any form. Returns DNS records in the wallet category that contain this address.

domainstring

Domain name to search for. Returns DNS records with this exact domain name.

limitinteger (int32)

Limit the number of rows to return. Use with offset to batch requests.

offsetinteger (int32)

Skip the first N rows. Use with limit to batch requests.

Responses
{address}object

Address book entry. The key is an address that appears in the response, in raw format workchain:hex.

domainstring

TON DNS domain linked to the address. null when no domain is associated.

interfacesstring[]

Contract interfaces detected for the address, for example wallet_v4r2. Can be null or empty when none are detected.

user_friendlystring

Address in user-friendly base64url format.

dns_next_resolverstring

Address of the next resolver contract set for this domain (dns_next_resolver record), in raw format workchain:hex. null if not set.

dns_site_adnlstring

256-bit ADNL address of the TON Site linked to this domain (site record), base64 encoded. null if not set.

dns_storage_bag_idstring

256-bit TON Storage bag ID linked to this domain (storage record), base64 encoded. null if not set.

dns_walletstring

Wallet address linked to this domain (wallet record), in raw format workchain:hex. null if not set.

domainstring

Full domain name, for example foundation.ton.

nft_item_addressstring

Address of the NFT item contract that represents this domain, in raw format workchain:hex.

nft_item_ownerstring

Address of the owner of the domain NFT item, in raw format workchain:hex. null if the owner is not known.

self_assignedboolean

Whether the owner, wallet, and last wallet writer are the same. Available only when the server uses -dns-self-assigned-only.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/dns/records?domain=foundation.ton&limit=100&offset=0" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "records": [
    {
      "nft_item_address": "0:78DFE54299FD7B3BB60C779D5F02F3A370C902C38E8DFF724C0A87A01FF643A3",
      "nft_item_owner": "0:9DA971AF38D2F03ABDF308D5F91636A97E5A2B07A66C39D71D7CBAE3B032EDDC",
      "domain": "foundation.ton",
      "dns_next_resolver": null,
      "dns_wallet": "0:83DFD552E63729B472FCBCC8C45EBCC6691702558B68EC7527E1BA403A0F31A8",
      "dns_site_adnl": "UWYYz2y+kAT2iD50LJouPKU+0C4+NvTO9iqY7h5EkXQ=",
      "dns_storage_bag_id": "f+p68jJfCltpCJOcnXL5LbTAylLMqM4sSLsnCL8YhUE=",
      "self_assigned": false
    }
  ],
  "address_book": {
    "0:78DFE54299FD7B3BB60C779D5F02F3A370C902C38E8DFF724C0A87A01FF643A3": {
      "user_friendly": "EQB43-VCmf17O7YMd51fAvOjcMkCw46N_3JMCoegH_ZDo40e",
      "domain": null,
      "interfaces": [
        "dns",
        "editable"
      ]
    },
    "0:83DFD552E63729B472FCBCC8C45EBCC6691702558B68EC7527E1BA403A0F31A8": {
      "user_friendly": "UQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqEBI",
      "domain": null,
      "interfaces": [
        "wallet_v3r2"
      ]
    },
    "0:9DA971AF38D2F03ABDF308D5F91636A97E5A2B07A66C39D71D7CBAE3B032EDDC": {
      "user_friendly": "UQCdqXGvONLwOr3zCNX5FjapflorB6ZsOdcdfLrjsDLt3AF4",
      "domain": "tolya.ton",
      "interfaces": [
        "wallet_v4r2"
      ]
    }
  }
}