@ens:ens.contenthash
Read the decoded content hash of an ENS name (e.g. ipfs://…).
Returns: string
Syntax
Section titled “Syntax”@ens:ens.contenthash(name)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. vitalik.eth) |
Examples
Section titled “Examples”# Read the content hash behind a nameset $hash @ens.contenthash("vitalik.eth")print $hash