@vue-ethereum-hooks/hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.22 • Public • Published

API is identical to wagmi. Check out wagmi.sh for examples

Initialization Example:

import { boot } from 'quasar/wrappers'
import { wagmiVue } from '@vue-ethereum-hooks/hooks'

import { publicProvider } from '@vue-ethereum-hooks/hooks/providers/public'

import { CoinbaseWalletConnector } from '@vue-ethereum-hooks/hooks/connectors/coinbaseWallet'
import { InjectedConnector } from '@vue-ethereum-hooks/hooks/connectors/injected'
import { MetaMaskConnector } from '@vue-ethereum-hooks/hooks/connectors/metaMask'
import { WalletConnectConnector } from '@vue-ethereum-hooks/hooks/connectors/walletConnect'

import { configureChains, defaultChains } from '@vue-ethereum-hooks/hooks'

const { chains, provider, webSocketProvider } = configureChains(defaultChains, [
  publicProvider(),
])

export default boot(({ app }) => {
  wagmiVue.install(app, {
    autoConnect: true,
    provider,
    webSocketProvider,
    connectors: [
      new MetaMaskConnector({ chains }),
      new CoinbaseWalletConnector({
        chains,
        options: {
          appName: 'moonlight.xyz',
        },
      }),
      new WalletConnectConnector({
        chains,
        options: {
          qrcode: true,
        },
      }),
      new InjectedConnector({
        chains,
        options: {
          name: 'Injected',
          shimDisconnect: true,
        },
      }),
    ],
  })
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.220latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.220
0.0.210
0.0.200
0.0.190
0.0.180
0.0.170
0.0.160
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20

Package Sidebar

Install

npm i @vue-ethereum-hooks/hooks

Weekly Downloads

0

Version

0.0.22

License

MIT

Unpacked Size

153 kB

Total Files

143

Last publish

Collaborators

  • mattice1738