@ens:rentPrice
Total price in wei to register or renew a .eth name for a duration.
Returns: number
Syntax
Section titled “Syntax”@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 time units (e.g. 1y) |
Examples
Section titled “Examples”# Price of one year of registrationset $price @ens:rentPrice("mydao.eth" 1y)print $price