🥷
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. Dev Docs
  2. SDK
  3. Offchain Manager

DataRecords

Data Record methods allows for fetching, adding, updating or deleting text records for a given subname

Data Records are key value pairs that are not nesesarily needed or used for ENS Resolutin, but can be helpful for storing metadata which can be used for filtering

AddDataRecord method adds data record to the subname.

Usage

client.addDataRecord(subname: "ns.myensname.eth", key: "data", data: "HODL ENS!");

DeleteDataRecord method deletes data record to the subname.

Usage

client.deleteDataRecord(subname: "ns.myensname.eth", key: "data");

GetDataRecords method returns all data records of provided subname.

Usage

client.getDataRecords("ns.myensname.eth");

GetDataRecord method returns requested data record of provided subname.

Usage

const response = client.getDataRecord("ns.myensname.eth", "data");
const data = response.record;

Return Type

export interface GetRecordResponse {
  record: string;
}

record - value of requested data record

PreviousTextRecordsNextIndexer Manager

Last updated 28 days ago