Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 409 Bytes

useEnsAddress.md

File metadata and controls

25 lines (18 loc) · 409 Bytes

useEnsAddress

This hook will return the resolved address by taking ens as a parameter

Usage

import { useEnsAddress } from '@nazeeh2000/comp-kit'

const Comp = () => {
  const { address } = useEnsAddress({ ensName: "wagmi-dev.eth" });

  return (
  // Your component
  )
};

Return Values

const { address, fetching, error } = useEnsAddress({
  ensName: 'wagmi-dev.eth',
});