Managing Names

Supports the key of parsing records

| 'avatar'
| 'url'
| 'description'
| 'keywords'
| 'email'
| 'com.twitter'
| 'com.discord'
| 'org.telegram'
| 'com.medium'
| 'com.instagram'
| 'com.github';

Set parsing records or addresses

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

await evm.resolver.setRecords({
        resolverAddress,
        registrarAddress,
        domainName,
        records: [
          {
            fun: 'setAddr', // set the parsing address
            key: 'address',
            value: '0x089279aC5a9305B3F530d8439ae16cb678F48e32',
          },
          {
            fun: 'setText', // set parsing record text
            key: 'email',
            value: '1234@gmail.com',
          },
        ],
      });

Set the resolution address

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

await evm.registrarReverse.setName({
  reverseRegistrarAddress,
  registrarAddress,
  domainName,
});

Last updated