resolveName

Resolves the primary Untoppable-Domains name for a specified address.

Example

Basic usage

import { resolveName } from "thirdweb/extension/unstoppable-domains";
const name = await resolveName({
client,
address: "0x...",
});

Custom resolver

By default this extension will try to resolve the address on Polygon mainnet, you can decide to customize the resolver contract by specifying resolverAddress and resolverChain

import { ethereum } from "thirdweb/chains";
const address = await resolveName({
client,
address: "0x...",
resolverAddress: "0x...",
resolverChain: ethereum,
});
function resolveName(options: ResolveUDNameOptions): Promise<string>;

Parameters

The options for resolving an UD domain

Type

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

Returns

let returnType: Promise<string>;