getFilteredSubnames.
Add or update a metadata record
Add or update a metadata record.subname- Full ENS subnamekey- Case-sensitive metadata keydata- Value to store (string)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Metadata for discovery and filtering.
getFilteredSubnames.
await client.addDataRecord(
'alice.example.eth',
'membership-tier',
'pro',
);
subname - Full ENS subnamekey - Case-sensitive metadata keydata - Value to store (string)await client.deleteDataRecord('alice.example.eth', 'membership-tier');
const allMetadata = await client.getDataRecords('alice.example.eth');
// Returns: Record<string, unknown>
{
"token-holder": "1200",
"segment": "pro"
}
const response = await client.getDataRecord(
'alice.example.eth',
'membership-tier',
);
const data = response.record; // 'pro'
interface GetRecordResponse {
record: string;
}
Was this page helpful?
