Subdomains Of Multiple Accounts

This endpoint returns you a list of subdomains owned based on the account hashes that you input

Parameters

  • accountHashes- a list of domain owner's account hash

Results

Valid Response

<object>- a list of JSON objects containing the following fields each:

  • owner:<String>, the domain owner's account hash
  • subdomains:[<object>], a list of subdomains owned which contains the following fields each:
    • name:<String>, the name of the subdomain
    • subdomainHash:<String>, the subdomain's account hash

Example of a valid response:

{
  "status": "Success",
  "message": "Retrieved accounts' sub domains",
  "result": [
    {
      "owner": "GE6DXG7QzXX64TDsfX9GECuVbwxQ6VxpQmhvT1oPXFdp",
      "subdomains": [
        {
          "name": "mud",
          "subdomainHash": "CKfSW36KdGTWB4Micamdve8FYeb8mqDEed64KxQKVBg9"
        },
        {
          "name": "ustur",
          "subdomainHash": "CaGxycj9DxMonp6RzLsWrHZjNb2NxmRzXsDY95ri4HbT"
        },
        {
          "name": "oni",
          "subdomainHash": "CkFWzxdjD7x7Zu7wiUGQL8z9iocJXJYkgzTDTDnxqg34"
        },
        {
          "name": "outskirts",
          "subdomainHash": "88YrvLy9L2mS8Nz685UVRoPvukkXuVUxFMnpGFMeQYmq"
        }
      ]
    }
  ]
}

Invalid Response

<object> - a JSON object containing the following fields if the requested account doesn't exist

  • code:<integer>, The error code
  • message:<String>, An error message to indicate which part of the query went wrong
  • status:<String>, The response status following the error code
    • 400 = Bad Request (client side)
    • 500 = Internal Server Error (server side)
Language
Click Try It! to start a request and see the response here!