Skip to content

@ens:ens.contenthash

Read the decoded content hash of an ENS name (e.g. ipfs://…).

Returns: string

@ens:ens.contenthash(name)
Name Type Description
name string ENS name (e.g. vitalik.eth)
# Read the content hash behind a name
set $hash @ens.contenthash("vitalik.eth")
print $hash