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",
});
function resolveText(
): Promise<null | string>;

Parameters

The options for resolving an ENS address.

Type

let options: {
client: ThirdwebClient;
key: string;
name: string;
resolverAddress?: string;
resolverChain?: Chain;
};

Returns

let returnType: Promise<null | string>;

A promise that resolves to the text record.