Skip to main content
Use this to perform a forward resolution of a domain.
// See documentation to set up the client first

let resolutionApi = new superlink.ResolutionApi();
let domain = "your.domain"; 
let opts = {
  'nameservices': ["superlink","ens","ud"],
};

resolutionApi.resolveDataByDomain(domain, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    data.wallets.forEach(wallet => {
      console.log(wallet.coin, wallet.address);
    })
  }
});
// See documentation to set up the client first

resp, r, err := superlinkClient.ResolutionAPI.ResolveDataByDomain(context.Background(), domain).Nameservices(nameservices).Execute()
if err != nil {
  fmt.Fprintf(os.Stderr, "Error when calling `ResolutionAPI.ResolveDataByDomain``: %v\n", err)
  fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}

for _, w := range resp.Wallets {
  fmt.Fprintf(os.Stdout, "%s %s\n", *w.Coin, *w.Address)
}
# See documentation to set up the client first

api_instance = superlink.ResolutionApi(api_client)
domain = 'your.domain'
nameservices = ['superlink','ens','ud'] 

try:
    api_response = api_instance.resolve_data_by_domain(domain, nameservices=nameservices)
    for wallet in api_response.wallets:
        print(wallet.coin.name, wallet.address)
except Exception as e:
    print("Exception when calling ResolutionApi->resolve_data_by_domain: %s\n" % e)