ens:set-addr
Set the address record of an ENS name.
Syntax
Section titled “Syntax”ens:set-addr <name> <address> [coinType]Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. mydao.eth) |
address |
address |
Address to set |
[coinType] |
number |
ENSIP-9/11 coin type (defaults to 60, ETH; e.g. @cointype(optimism); only EVM-style addresses are supported) |
Examples
Section titled “Examples”load ens
# Point mydao.eth at the executing accountens:set-addr mydao.eth @me
# Set the address for an EVM L2 (ENSIP-11 coin type)ens:set-addr mydao.eth 0x1234567890abcdef1234567890abcdef12345678 @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.
See Also
Section titled “See Also”- @ens.addr — resolve an address record
- @cointype — coin type of an EVM chain
- ens:set-primary-name — set the reverse record