WA

Wagmi

wagmi

React Hooks for Ethereum

Hooks
wagmi
react
hooks
eth
ethereum
dapps
wallet
web3
javascript
npm
Stars
6.7k
Weekly
874k
Open issues
29
Bundle
~25 kB

Installation

npm install wagmi

Code example

import { useWagmi } from "wagmi";

export function Example() {
  const value = useWagmi();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by awkweb
  • 874k weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 29 open issues on GitHub

FAQs

Alternatives & similar libraries