🥷
Namespace
AppDev Portal
  • [ Introduction ]
    • ENS
    • Namespace
  • Official Links
  • Apps
    • Overview
    • Onchain Subnames (App)
      • Search & Register
      • Wizard
        • Listing an ENS Name
        • Features List
      • ENS Widget
      • Farcaster Frames
        • Default Frame
        • Custom Frame
    • Offchain Subnames (DevApp)
      • Subnames
      • Resolver set
      • API keys
  • How-to Guides and Demos
  • Dev Docs
    • SDK
      • Offchain Manager
        • Installation
        • Generate API key
        • Create or Update Subname
        • DeleteSubname
        • IsSubnameAvailable
        • GetFilteredSubnames
        • AddressRecords
          • ChainName
        • TextRecords
        • DataRecords
      • Indexer Manager
        • Installation
        • Fetch L2 Subnames
        • Fetch L2 Registries
      • Mint Manager
        • Installation
        • GetMintDetails
        • GetMintTransactionParameters
        • IsSubnameAvailable
        • How To Mint L1 & L2 subname via mint-manager
      • Namespace Client (deprecated)
        • Installation
        • GetListedName
        • GetMintDetails
        • GetMintTransactionParameters
        • IsSubnameAvailable
        • GenerateAuthToken
    • APIs
      • Offchain Manager
      • Mint Manager
    • Infrastructure
      • Namespace L2 Subnames
    • Subpages
  • Ecosystem
    • Use Cases
  • Jobs
    • 📌We’re Hiring 👇
    • 🧑‍💻 Full-Stack Dev
    • 🥷 DevRel Lead
    • 💼 BD Lead
    • 🐣 Intern (dev role)
Powered by GitBook
On this page
  • 1. addAddressRecord
  • Usage Example
  • 2. deleteAddressRecord
  • Usage Example
  1. Dev Docs
  2. SDK
  3. Offchain Manager

AddressRecords

These methods allow you to add, update, or delete blockchain address records associated with a subname

1. addAddressRecord

The addAddressRecord method adds or updates an address record for the specified subname on the given blockchain network.

Usage Example

client.addAddressRecord(subname: "ns.myensname.eth", chain: ChainName.Ethereum, value: "0x0123...");
  • subname: The full ENS subname (e.g., "ns.myensname.eth").

  • chain: A value from the ChainName enum representing the target blockchain.

  • value: The address to associate with the subname for the specified chain.

2. deleteAddressRecord

The deleteAddressRecord method removes an address record for a specific blockchain from a given subname.

  • subname: The full ENS subname.

  • chain: The blockchain network whose address record should be removed.

Note: Removing an address record will disassociate the blockchain address from the subname but does not affect other records.

Usage Example

client.deleteTextRecord(subname: "ns.myensname.eth", chain: ChainName.Ethereum);
PreviousGetFilteredSubnamesNextChainName

Last updated 28 days ago