@ens:ens.avatar
Get the avatar URI for an ENS name.
Returns: string
Syntax
Section titled “Syntax”@ens:ens.avatar(name)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. vitalik.eth) |
Examples
Section titled “Examples”# Get the avatar for an ENS nameset $avatar @ens.avatar("vitalik.eth")print $avatar