Address
Retrieves all subnames associated with an address
Query parameters
addressstringRequiredExample: 
The address of the subdomain
0xb965a5f3a0fC18D84E68883ccAd508445a7917A8chainIdnumberRequiredExample: 
Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)
11155111isClaimedbooleanOptionalExample: 
if true, will return claimed subdomain, if false, will return unclaimed subdomain, if not provided, will return all subdomains
trueensDomainsstring[]OptionalExample: 
Array of ensDomains to filter the subnames by
["jan.eth"]Responses
200
Subnames were fetched successfully.
application/json
Responseall of
get
/ens/v1/subname/addressGET /ens/v1/subname/address?address=text&chainId=1 HTTP/1.1
Host: api.justaname.id
Accept: */*
200
Subnames were fetched successfully.
{
  "statusCode": 200,
  "result": {
    "data": {
      "subnames": [
        {
          "ens": "user.justan.id",
          "isClaimed": true,
          "claimedAt": "2024-05-22T11:55:29.000Z",
          "isJAN": true,
          "records": {
            "resolverAddress": "0x48De002d3c64e4cFD130A87A35ECD960c01954bc",
            "texts": [
              {
                "key": "com.twitter",
                "value": "justaname_id"
              }
            ],
            "coins": [
              {
                "id": 60,
                "name": "eth",
                "value": "0x1FA89227d0F42960eb5f5693fAFCF58e255A4dfa"
              }
            ],
            "contentHash": {
              "protocolType": "ipfs",
              "decoded": "bafybeiafwq5iqeyk73or3dmzyjyqaauyzdwi3xtync7h6kp64umwvsiumi"
            }
          }
        }
      ]
    },
    "error": "text"
  }
}Was this helpful?