🥷
Namespace
  • [ Introduction ]
    • ENS
    • Namespace
  • Official Links
  • [ Dapps ]
    • Overview
    • Onchain Subs (App)
      • Search & Register
      • Wizard
        • Listing an ENS Name
        • Features List
      • ENS Widget
      • Farcaster Frames
        • Default Frame
        • Custom Frame
    • Offchain Subs (DevPortal)
      • Subname create/manage
      • 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
        • Methods
        • GetL2Subname
        • GetL2Subnames
      • 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
  • [ ecosystem ]
    • Use Cases
  • [ Jobs ]
    • 🧑‍💻 Full-Stack Dev
    • 🥷 Dev-Rel Lead
    • 💼 BD Lead
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 10 hours ago