@ens:contenthash
Encode a content hash (ipfs, ipns, skynet) for ENS records.
Returns: bytes
Syntax
Section titled “Syntax”@ens:contenthash(input)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
input |
string |
Content hash (e.g. “ipfs:Qm…”) |
Examples
Section titled “Examples”# Encode an IPFS content hashset $hash @contenthash("ipfs:QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4")print $hash- Supported codecs:
ipfs,ipns,skynet - Format:
codec:hash