Socket
Book a DemoInstallSign in
Socket

wagmi-core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wagmi-core

<img

0.1.13
Source
npmnpm
Version published
Weekly downloads
527
-24.93%
Maintainers
1
Weekly downloads
 
Created
Source

wagmi

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-xyz.vercel.app to view the full documentation.

Usage

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

const App = () => (
  <Provider>
    <YourRoutes />
  </Provider>
)
  • 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

FAQs

Package last updated on 26 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.