ens:transfer
Transfer ownership of an ENS name.
Syntax
Section titled “Syntax”ens:transfer <name> <newOwner>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. mydao.eth) |
newOwner |
address |
New owner address |
Examples
Section titled “Examples”load ens
# Hand a name over to the DAO agentens:transfer mydao.eth 0x1234567890abcdef1234567890abcdef12345678- Wrapped names transfer the NameWrapper ERC-1155 token; unwrapped
.ethsecond-level names transfer the registrant NFT (the new owner can thenreclaimregistry control); everything else usessetOwneron the registry.
See Also
Section titled “See Also”- @ens.owner — read the current owner