ens:set-contenthash
Set the content hash of an ENS name.
Syntax
Section titled “Syntax”ens:set-contenthash <name> <hash>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. mydao.eth) |
hash |
string |
Content hash (“ipfs://Qm…”, “ipns://…”, “skynet://…” or encoded 0x bytes) |
Examples
Section titled “Examples”load ens
# Point mydao.eth at an IPFS CIDens:set-contenthash mydao.eth "ipfs://QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4"
# Point at an IPNS nameens:set-contenthash mydao.eth "ipns://k51qzi5uqu5dlvj2baxnqndepeb86cbk3ng7n3i46uzyxzyqj2xjonzllnv0v8"- Accepts
ipfs,ipnsandskynetURIs (codec:hashorcodec://hash) or already-encoded EIP-15770xbytes (e.g. from@contenthash).
See Also
Section titled “See Also”- @contenthash — encode a content hash
- @ens.contenthash — read a content hash