Skip to content

@ens:rentPrice

Total price in wei to register or renew a .eth name for a duration.

Returns: number

@ens:rentPrice(name duration)
NameTypeDescription
namestring.eth name or label (e.g. vitalik.eth or vitalik)
durationnumberDuration, in time units (e.g. 1y)
# Price of one year of registration
set $price @ens:rentPrice("mydao.eth" 1y)
print $price