Published Contracts

//RegistrarController
0xB235Cea7666d4379ca29e9Ad4ba2787e504192a8

//PublicResolver
0xCE70B7f5BB44BE2f8A7f37f8c162240440Fc6218
//RegistrarController ABI
[
  "function available(string) view returns (bool)",
  "function registerWithConfig(string,address,uint256,address,address,bool,address) payable",
  "function rentPrice(string) pure returns (uint256)"
]
// register 123789.zksync

let label = '123456' // 123456.zksync
let myAddress = '0x1234567890123456789012345678901234567890'
let duration = 0
let PublicResolver = '0xCE70B7f5BB44BE2f8A7f37f8c162240440Fc6218'
let isSetName = false
let referrer = '0x0000000000000000000000000000000000000000'
let ethPrice = ethers.utils.parseEther("0.0023"); // 2 characters 0.6 eth, 3 characters 0.14 eth, 4 characters 0.045 eth, 5+ characters 0.0023 eth

await RegistrarController.registerWithConfig(
    label,
    myAddress,
    duration,
    PublicResolver,
    myAddress,
    isSetName,
    referrer,
    { value: ethPrice }
)

Last updated