resolveName

Resolves the primary name for a specified address.

Example

import { resolveName } from "thirdweb/extensions/ens";
const name = await resolveName({
client,
address: "0x1234...",
});
function resolveName(
): Promise<null | string>;

Parameters

The options for resolving an ENS address.

Type

let options: {
address: Address;
client: ThirdwebClient;
resolverAddress?: string;
resolverChain?: Chain;
};

Returns

let returnType: Promise<null | string>;

A promise that resolves to the Ethereum address.