@ens:ens.rentPrice
Total price in wei to register or renew a .eth name for a duration.
Returns: number
Syntax
Section titled “Syntax”@ens:ens.rentPrice(name duration)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
.eth name or label (e.g. vitalik.eth or vitalik) |
duration |
number |
Duration in seconds |
Examples
Section titled “Examples”# Price of one year of registrationset $price @ens.rentPrice("mydao.eth" 31536000)print $price