> ## Documentation Index
> Fetch the complete documentation index at: https://docs.namespace.ninja/llms.txt
> Use this file to discover all available pages before exploring further.

# Text records

> Read and write ENS text records on a subname.

> [!NOTE]
>
> Text records store public profile details such as a display name, website, avatar, or social handle. Do not store secrets in text records.

These methods allow you to manage text records for a given ENS subname. You can fetch, add, update, or delete individual records.

## Add or update a text record

Add or update a text record.

```typescript theme={null}
await client.addTextRecord(
  'alice.example.eth',
  'description',
  'Namespace community member',
);
```

**Parameters:**

* `subname` - Full ENS subname
* `key` - Text record key (e.g., "description")
* `value` - Value to associate with the key

## Delete a text record

Delete a text record.

```typescript theme={null}
await client.deleteTextRecord('alice.example.eth', 'description');
```

## Get all text records

Get all text records for a subname.

```typescript theme={null}
const records = await client.getTextRecords('alice.example.eth');
// Returns: Record<string, string>
```

## Get one text record

Get a specific text record by key.

```typescript theme={null}
const response = await client.getTextRecord('alice.example.eth', 'description');
const description = response.record;
```

**Return Type:**

```typescript theme={null}
interface GetRecordResponse {
  record: string;
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.