Skip to content

ens:set-resolver

Set the resolver contract of 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-resolver <name> <resolver>
NameTypeEvaluationDescription
namestringBuild timeENS name (e.g. mydao.eth)
resolveraddressRuntime in smart blocksResolver address
load ens
# Switch mydao.eth to the latest public resolver
ens:set-resolver mydao.eth 0xF29100983E058B709F3D539b0c765937B804AC15
  • Wrapped names are handled automatically (the action goes through the NameWrapper instead of the registry).
  • An ENSv2 name's resolver is set on its token in ENSv2's ETHRegistry, by an account with the set-resolver role (its owner gets it at registration). Use an ENSv2 resolver: ens:create-resolver makes one.