Resolves an address to a name.
Throws an error under following conditions:
Returns null under following conditions:
const name = await resolver.resolveAddressToName('tz1...');
console.log(name); // 'alice.tez'
Gets all information about a domain by it's name. If you only need to resolve the address, use [[resolveNameToAddress
]] instead.
Resolves a domain name to an address.
Throws an error under following conditions:
Returns null under following conditions:
const address = await resolver.resolveNameToAddress('alice.tez');
console.log(address); // 'tz1...'
Gets all information about a reverse record by it's address. If you only need to resolve the name, use [[resolveAddressToName
]] instead.
An interface that defines functions for resolving names and addresses.