Resolving Names

Get address by domain name

import { evm } from '@jazdid/jaz-did-sdk';

await evm.resolver.getAddress({
    resolverAddress,
    registrarAddress,
    domainName: 'test001',
}, {chainId});

Get domain name by address

import { Services, evm } from '@jazdid/jaz-did-sdk';

// Call the contract to get data
await evm.resolver.getDomainName({
    reverseRegistrarAddress,
    registrarAddress,
    resolverAddress,
}, {chainId, account});

// Call service to get data
await Services.accountService.resolve({
    address: '0x089279aC5a9305B3F530d8439ae16cb678F48e31',
    chain: 'bnb',
});

Last updated