@web3-wallet/plugin-ens
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

Ens

Install

pnpm add @web3-wallet/plugin-ens

Usage

import { MetaMask } from '@web3-wallet/metamask';
import { EnsPlugin } from '@web3-wallet/plugin-balance';

const wallet = createWallet(new MetaMask(), {
  plugins: [EnsPlugin.create()],
});

const { useEnsName } = wallet.getPlugin<EnsPlugin.Api>(EnsPlugin.name);

const { data: ensName, ...rest } = useEnsName();

useEnsName is wrapped with useQuery.

Readme

Keywords

Package Sidebar

Install

npm i @web3-wallet/plugin-ens

Weekly Downloads

0

Version

1.3.3

License

MIT

Unpacked Size

156 kB

Total Files

101

Last publish

Collaborators

  • logan_luo