ai-agent
Wagmi: Simplify Ethereum Apps
Get reactive primitives for Ethereum apps with wagmi, ideal for dapp founders, with 6.7k+ GitHub stars
6,733 stars1,418 forksTypeScriptHealth Score 9/10Updated 7/29/2026100% free · open source
What it does
Wagmi provides a set of reactive primitives to build Ethereum applications, simplifying the process of interacting with the Ethereum blockchain
Install / run
npm install wagmiWhen to use it
- •When building a dApp that requires real-time updates from the Ethereum blockchain
- •When needing to simplify complex Ethereum smart contract interactions
- •When creating an application that requires robust error handling for Ethereum transactions
Quick start
- 1Import wagmi in your project: `import { createClient } from 'wagmi';`
- 2Create a wagmi client: `const client = createClient({ provider: 'https://mainnet.infura.io/v3/YOUR_PROJECT_ID' });`
- 3Use the `useAccount` hook to get the current account: `import { useAccount } from 'wagmi'; const { address } = useAccount();`
- 4Use the `useBalance` hook to get the current balance: `import { useBalance } from 'wagmi'; const { data: balance } = useBalance({ address });`
- 5Subscribe to blockchain events using `useBlockNumber`: `import { useBlockNumber } from 'wagmi'; const { data: blockNumber } = useBlockNumber();`
Ready-to-paste prompt
Get the current Ethereum block number: `import { createClient } from 'wagmi'; const client = createClient({ provider: 'https://mainnet.infura.io/v3/YOUR_PROJECT_ID' }); client.getBlockNumber().then((blockNumber) => console.log(blockNumber));`Heads up: Make sure to replace `YOUR_PROJECT_ID` with your actual Infura project ID, as the Infura API requires a valid project ID to function correctly
Saves to your device
Topics
dapp
ethereum
hooks
react
typescript
viem
vue
wagmi
web3
How Wagmi: Simplify Ethereum Apps works
Codeflow
Free to inspect
Wagmi: Simplify Ethereum Apps is a very large TypeScript project (~88k lines across 1122 code files, plus 31 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, MIT license, has a test suite.
Size
Very large codebase
~88k lines · 1122 code files · days to read — use, don't read
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
TypeScript 99%Vue 1%
Where to start reading
- 1package.jsonDependencies and the commands it exposes
What's in each folder
READMEHas testsDocumentedCI checksMIT licenseUpdated this month
Details
Creator
wevm
Language
TypeScript
Category
ai-agent
Published
11/23/2021
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.
Related skills
More ai-agent tools founders pair with this one.
ai-agent★ 276,436
Track GitHub Stars with 996.ICU
Get a popular GitHub star counter for your startup, backed by 276k+ GitHub stars, ideal for founders.
ai-agent★ 264,191
Superpowers
An agentic skills framework & software development methodology that works.
ai-agent★ 244,424
Linux: Open Source Kernel
Get the Linux kernel source tree for custom development, ideal for startup founders in need of a flexible OS foundation with 236k+ GitHub stars
ai-agent★ 204,069
Improve Code with andrej-karpathy-skills
Get better code behavior with andrej-karpathy-skills, 165k+ GitHub stars, for founders using LLMs.
ai-agent★ 189,101
Simplify Zsh with ohmyzsh
Get a customizable terminal experience with ohmyzsh, perfect for startup founders, backed by 188k+ GitHub stars.
ai-agent★ 187,262
FreeDomain: Free Website Domain
Get a free domain with FreeDomain. For startup founders.