Readonly apiDecentraWeb API wrapper instance
Readonly chainProtected Readonly contractReadonly contractReadonly dwebDWEB token contract
Readonly networkCurrent network name
Readonly providerReadonly signerEthers.js Ethereum signer for writing data to the blockchain
Optional Readonly wethWETH token contract, only available on the Polygon network
Is the registrar on the Polygon network
Get subdomain registration approval for staked domain names
if true, registration fee will be paid in DWEB tokens, otherwise in ETH
Get subdomain registration approval for domain names owned by signer
list of domains and subdomains to register
if true, registration fee will be paid in DWEB tokens, otherwise in ETH
ETH address of the owner of created subdomains, defaults to signer address
Calculate total owner and service fee for approved subdomain registration
Check staking status of a list of domains
list of domains to check
Verify that signer has enough balance to pay for registration
Optional isFeeInDWEB: booleanGenerated using TypeDoc
Class that handles subdomain registration. Registration is done in 2 steps:
Example
Register subdomain "john" for domain "wallet" owned by signer and pay in ETH