This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

wagmi-core
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

wagmi Version Downloads Sponsors

React Hooks library for Ethereum, built on ethers.js.

Features

  • 🚀 20+ hooks for working with wallets, ENS, contracts, transactions, signing, etc.
  • 💼 Built-in wallet connectors for MetaMask, WalletConnect, and Coinbase Wallet
  • 🌀 Auto-refresh data on wallet and network changes
  • 🦄 TypeScript ready
  • 💨 Zero-dependencies (besides ethers.js peer dependency)
  • 🌳 Test suite and documentation
  • 📖 MIT License

Documentation

Visit https://wagmi.sh to view the full documentation.

Usage

  1. Install the dependencies.
npm add wagmi ethers
  1. Wrap your app with the Provider component.
import { Provider } from 'wagmi'

const App = () => (
  <Provider>
    <YourRoutes />
  </Provider>
)
  1. Use hooks.
import { useAccount } from 'wagmi'

const Page = () => {
  const [{ data, error, loading }, disconnect] = useAccount({
    fetchEns: true,
  })

  return ...
}

Every component inside the Provider is set up with the default InjectedConnector for connecting wallets and ethers.js Default Provider for fetching data.

Want to learn more? Check out the guides or browse the API docs.

Community

Support

Thanks

License

MIT.


wagmi

Readme

Keywords

none

Package Sidebar

Install

npm i wagmi-core

Weekly Downloads

499

Version

0.1.22

License

MIT

Unpacked Size

142 kB

Total Files

52

Last publish

Collaborators

  • awkweb
  • jmoxey