ens:set-text
Set a text record on an ENS name.
Syntax
Section titled “Syntax”ens:set-text <name> <key> <value>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. mydao.eth) |
key |
string |
Text record key (e.g. “url”, “com.twitter”) |
value |
string |
Text record value |
Examples
Section titled “Examples”load ens
# Set common text records on a name you ownens:set-text mydao.eth url "https://mydao.example"ens:set-text mydao.eth com.twitter "mydao"ens:set-text mydao.eth description "Community-owned treasury"- The action is sent to the name’s current resolver; the executing account must own (or operate) the name.
See Also
Section titled “See Also”- @ens.text — read a text record