resolveText

Resolves an ENS name and key to the specified record.

Example

import { resolveText } from "thirdweb/extensions/ens";
const twitterUsername = await resolveText({
client,
name: "vitalik.eth",
key: "com.twitter",
});

Parameters

Returns

A promise that resolves to the text record.