@ens:ens.addr
Resolve an ENS name to an address, optionally per coin type.
Returns: address
Syntax
Section titled “Syntax”@ens:ens.addr(name coinType?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. vitalik.eth) |
[coinType] |
number |
ENSIP-9/11 coin type (defaults to 60, ETH) |
Examples
Section titled “Examples”# Resolve a name to an addressset $addr @ens.addr("vitalik.eth")print $addr