Skip to content

@ens:ens.avatar

Get the avatar URI for an ENS name.

Returns: string

@ens:ens.avatar(name)
Name Type Description
name string ENS name (e.g. vitalik.eth)
# Get the avatar for an ENS name
set $avatar @ens.avatar("vitalik.eth")
print $avatar