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);
})
}
});
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);
})
}
});