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
Returns the price of registration in wei
domain name and duration
if true, registration fee will be paid in DWEB tokens, otherwise in ETH
Returns the price of registration in wei for multiple domains
array of domain names and durations
if true, registration fee will be paid in DWEB tokens, otherwise in ETH
Step 3. Finish TLD registration. This step can be called only 1 minute after sendCommitment
step was completed.
Also, it will throw an error if signer balance is not enough to pay for registration. Registration considered
successful after 1st confirmation received.
data returned from sendCommitment
step
if true, fees will be paid in DWEB tokens, otherwise in ETH
Step 1. Normalizes domain names, calls the API to check if they are available and returns approval for registration. Approved request is valid for 30 minutes.
Check staking status of a list of domains
list of domains to check
Returns the price of registration in ETH and DWEB tokens and verifies if signer has enough balance to pay for registration.
Generated using TypeDoc
Class that handles TLD registration on Ethereum network. Registration is done in 4 steps:
Note: After approval is receieved, domain will be reserved for 30 minutes. Since process may fail on one of following steps, it is recommended to save result of each step to be able to continue in case of failure.
Example