Skip to main content

useResolveEnsAddress

Gets the wallet address from an ENS name.

Returns undefined or the address.

How to import

import { useResolveEnsAddress } from 'eth-hooks';

How to use

To get started:

const [addressFromENS] = useResolveEnsName(scaffoldAppProviders.mainnetAdaptor?.provider, 'austingriffith.eth');
console.log('🏷 Resolved austingriffith.eth as:', addressFromENS);

To learn more

Go here for this hooks full API documentation.