Skip to content

ens:set-text

Set a text record on an ENS name.

Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.

ens:set-text <name> <key> <value>
NameTypeEvaluationDescription
namestringBuild timeENS name (e.g. mydao.eth)
keystringRuntime in smart blocksText record key (e.g. "url", "com.twitter")
valuestringRuntime in smart blocksText record value
load ens
# Set common text records on a name you own
ens: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; on ENS v1 the executing account must own (or operate) the name.
  • On an ENSv2 name the record is written to the name's resolver in ENSv2's ETHRegistry, which must be an ENSv2 resolver (see ens:create-resolver), by an account with the role to set it there. Subnames of ENSv2 names are not supported yet.