Skip to content

Transfer AENS names

Single name

sequenceDiagram
    actor NFT owner
    NFT owner ->> NFT Contract: 1) transfer_single: nft_id_old, nft_id_new, name
    Note left of NFT Contract: requires caller to be owner of both NFTs
    Note left of NFT Contract: changes association of name from one NFT to another NFT
    Note left of NFT Contract: updates expiry of transferred name to match expiry of names in nft_id_new

Multiple names

sequenceDiagram
    actor NFT owner
    NFT owner ->> NFT Contract: 1) transfer_multiple: nft_id_old, nft_id_new, Set(names)
    Note left of NFT Contract: requires caller to be owner of both NFTs
    Note left of NFT Contract: changes association of names from one NFT to another NFT
    Note left of NFT Contract: updates expiry of transferred names to match expiry of names in nft_id_new

All names

sequenceDiagram
    actor NFT owner
    NFT owner ->> NFT Contract: 1) transfer_all: nft_id_old, nft_id_new
    Note left of NFT Contract: requires caller to be owner of both NFTs
    Note left of NFT Contract: changes association of name from one NFT to another NFT
    Note left of NFT Contract: updates expiry of transferred names to match expiry of names in nft_id_new
    Note left of NFT Contract: burns the old NFT

Note:

  • Users can define via config on a global or NFT specific level if they want to allow receiving AENS names from others
    • By default this is not allowed to prevent spamming NFTs with (unwanted) AENS names