useAvatar
The useAvatar
hook is used to get avatar image url from an onchain identity
provider for a given name.
Usage
import { useAvatar } from '@coinbase/onchainkit/identity';
const { data: avatar, isLoading } = useAvatar({ ensName: 'vitalik.eth' });
Returns
useQuery<Promise<GetAddressReturnType>>