Skip to main content
Text records are key-value pairs that can be used to store any arbitrary data associated with a name. Think of this as a user’s digital backpack utilized for the storage of preferences, public details, and more.
These methods allow you to manage text records for a given ENS subname. You can fetch, add, update, or delete individual records.

1. addTextRecord

Add or update a text record.
Parameters:
  • subname - Full ENS subname
  • key - Text record key (e.g., “description”)
  • value - Value to associate with the key

2. deleteTextRecord

Delete a text record.

3. getTextRecords

Get all text records for a subname.

4. getTextRecord

Get a specific text record by key.
Return Type: