Skip to content

ens:set-addr

Set the address record 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-addr <name> <address> [coinType]
NameTypeEvaluationDescription
namestringBuild timeENS name (e.g. mydao.eth)
addressaddressRuntime in smart blocksAddress to set
[coinType]numberRuntime in smart blocksENSIP-9/11 coin type (defaults to 60, ETH; e.g. @coinType(optimism); only EVM-style addresses are supported)
load ens
# Point mydao.eth at the executing account
ens:set-addr mydao.eth @me
# Set the address for an EVM L2 (ENSIP-11 coin type)
ens:set-addr mydao.eth 0x1234567890abcdef1234567890abcdef12345678 @ens:coinType(optimism)
  • Without a coin type the default ETH record (coin type 60) is set.
  • Only EVM-style (20-byte hex) addresses are supported for non-default coin types.