Skip to main content
Use the following to help guide the onboarding of an existing domain as a parent domain. The domain requires to be set up for DNSSEC and requires a text record describing the ENS resolver. This API will check and verify this setup, and if incorrect advise how to fix.
// See documentation to set up the client first

let apiInstance = new superlink.SubdomainApi();
let parentDomain = "supertest.me";

apiInstance.parentdomainValidation(parentDomain, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log(`${data.status}`)
    console.log(`${data.reason}`)
  }
});
// See documentation to set up the client first

parentDomain := "supertest.me"
resp, r, err := superlinkClient.SubdomainAPI.ParentdomainValidation(context.Background(), parentDomain).Execute()
if err != nil {
  fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.ParentdomainValidation``: %v\n", err)
  fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}

fmt.Fprintf(os.Stdout, "%s\n", *resp.Status)
fmt.Fprintf(os.Stdout, "%s\n", *resp.Reason)
# See documentation to set up the client first

api_instance = superlink.SubdomainApi(api_client)
parent_domain = 'supertest.me'

try:
    api_response = api_instance.parentdomain_validation(parent_domain)
    print(api_response.status)
    print(api_response.reason)
except Exception as e:
    print("Exception when calling SubdomainApi->parentdomain_validation: %s\n" % e)