resolveAddress

Resolve an Unstoppable-Domain domain to an Ethereum address

Example

Basic usage

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

Custom resolver

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

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

Parameters

The options for resolving an UD domain

Type

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

Returns

let returnType: Promise<string>;

The Ethereum address associated with the domain name. Learn more