A React library that adds customizable wallet connection UI to Ethereum dapps, built on wagmi and viem.
wevm/wagmi
React and Vue hooks and TypeScript utilities for building Ethereum apps, built on top of viem.
- Stars
- 6,773
- Forks
- 1,462
- Open issues
- 19
- Last commit
- 3 days ago
What is it?
Wagmi provides reactive primitives for connecting Ethereum applications to wallets and blockchains. Its hooks cover common frontend needs such as reading account and chain state, querying balances, and sending transactions, with the state managed reactively in the UI framework.
The library is written in TypeScript and is built on top of viem, a lower-level Ethereum client library. Wagmi offers React and Vue bindings, with a framework-agnostic core package (@wagmi/core) that can be used without a UI framework.
Documentation and guides are hosted at wagmi.sh, and the project accepts contributions following its published contributing guide.
Key features
- 01React and Vue hooks for Ethereum wallet and chain state
- 02Framework-agnostic core package (@wagmi/core) for non-UI usage
- 03Built on viem, a TypeScript Ethereum client library
- 04Includes helpers for reading balances and sending transactions
- 05Written in TypeScript
Use cases
- Building a decentralized application (dApp) frontend in React
- Adding wallet connection and account state to a Vue app
- Reading on-chain data such as balances and contract state in a web UI
Topics
FAQ
- What is wagmi?
- React and Vue hooks and TypeScript utilities for building Ethereum apps, built on top of viem. Wagmi provides reactive primitives for connecting Ethereum applications to wallets and blockchains. Its hooks cover common frontend needs such as reading account and chain state, querying balances, and sending transactions, with the state managed reactively in the UI framework.
- Is wagmi free to use? What license does it have?
- wagmi is open source under the MIT license. Check the license terms before using it in commercial products.
- Is wagmi still maintained?
- Actively maintained. The last commit to wagmi was on Nov 4, 2026.
- What can I use wagmi for?
- Building a decentralized application (dApp) frontend in React Adding wallet connection and account state to a Vue app Reading on-chain data such as balances and contract state in a web UI
- Where can I get wagmi?
- The source code and installation instructions are on GitHub: https://github.com/wevm/wagmi
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
The second edition of "Mastering Ethereum", a book covering Ethereum development, smart contracts, and the network's underlying technology.
Taho is a community-owned, open-source Web3 browser extension wallet for Ethereum and Bitcoin, built as an alternative to MetaMask.
A modular faucet for EVM testnets that uses proof-of-work mining, captchas, IP limits and other checks to deter bots from draining funds.
A Go-based blockchain system platform for building dApps, DeFi, DAO and cross-chain applications with smart contracts, database tables and interfaces.
An open internet payments protocol built on HTTP, letting servers charge per request via the 402 Payment Required status.