Register Names
Registration params
{
chainId: 97,
domainName: 'test001',
duration: 1, // Unit (year)
bulkRegistrarControllerAddress: '0xbd418F36bC5cAB3B3A81ecd9a6a461b454328d92',
registrarAddress: '0xFe166d97c891A47c732c8b564A842e05dac10eD9'
}
import { Services, evm } from '@jazdid/jaz-did-sdk';Get the price of registering a domain name
const renewPrice = await evm.bulkRegistrarController.getRenewPrice({
bulkRegistrarControllerAddress,
data: [
{
registrarAddress,
domainNames: [{ name: domainName, duration: 1 }],
},
],
}, {chainId});
// Response:
console.log('renewPrice, \n', JSON.stringify(renewPrice, null, 2));
{
"0xFe166d97c891A47c732c8b564A842e05dac10eD9": {
"test001": {
"domainName": "test001",
"durations": "31556952",
"currency": "0x441950B67fc906756Dc0a1648bD07762182Db403", // Tokens used for payment
"cost": "5000000000000000000"
}
}
}
Generate registration order
Coroutine Task
Registeration name
Registration result
Last updated