A React hooks library for Ethereum development that's now on v3 with some smart breaking changes. The hooks are clean (useAccount, useReadContract, useWriteContract) and they moved connectors to a separate package to keep dependencies lean. Built on TanStack Query, so you get proper caching and refetching behavior. The type inference with ABIs is excellent if you remember the "as const" annotation. One thing that trips people up is the migration from v2: useContractRead is now useReadContract, and connectors come from useConnectors() instead of useConnect(). If you're building a React or Next.js app that talks to EVM chains, this is the standard. For Node scripts or backend work, skip this and use viem directly.

skills.sh installs
163
last updated
Aug 21, 2026

Install

$ npx -y skills add 0xsardius/onchain-typescript-skills --skill wagmi --agent claude-code

Installs into .claude/skills of the current project.

Files

Wagmi Skill

Version: Wagmi 3.x | Official Docs | Requires TypeScript 5.7.3+

Wagmi provides React hooks for Ethereum. This skill ensures correct patterns for provider setup, hooks usage, and React-specific pitfalls.

Quick Setup (Wagmi v3)

1. Config Setup

// config.ts
import { http, createConfig } from 'wagmi'
import { mainnet, polygon, arbitrum } from 'wagmi/chains'
// v3: Install connectors separately: npm i @wagmi/connectors
import { injected, coinbaseWallet, walletConnect } from '@wagmi/connectors'

export const config = createConfig({
  chains: [mainnet, polygon, arbitrum],
  connectors: [
    injected(),
    coinbaseWallet({ appName: 'My App' }),
    walletConnect({ projectId: 'YOUR_PROJECT_ID' }),
  ],
  transports: {
    [mainnet.id]: http('https://eth-mainnet.g.alchemy.com/v2/KEY'),
    [polygon.id]: http('https://polygon-mainnet.g.alchemy.com/v2/KEY'),
    [arbitrum.id]: http('https://arb-mainnet.g.alchemy.com/v2/KEY'),
  },
})

v3 Note: Connectors are now in @wagmi/connectors package for better dependency control.

2. Provider Setup

Sponsors

Details

Repository
github.com/0xsardius/onchain-typescript-skills
Categories
Frontend Development, Finance & Trading, Web3 & Blockchain
First seen
Jun 3, 2026

More from 0xsardius/onchain-typescript-skills

All 2
1community-access avataremail-accessibilitycommunity-access/accessibility-agentsAudits HTML email templates for accessibility under email client rendering constraints. Covers table-based layout, inline styling, image blocking fallbacks, sem162skills.sh installs
2jerrar670 avatarimplement_lenis_scrolljerrar670/surf-websiteInstructions for implementing Lenis smooth scrolling in a Next.js or React application.162skills.sh installs
3solar-luna avatarwechat-article-formattersolar-luna/fully-automatic-article-generation-skill将Markdown文章转换为美化的HTML格式,适配微信公众号发布。应用专业CSS样式、代码高亮、优化排版。当用户说"美化这篇文章"、"转换为HTML"、"优化公众号格式"、"生成公众号HTML"时使用。157skills.sh installs
4oimiragieo avatardiagram-generatoroimiragieo/agent-studioGenerates architecture, database, and system diagrams using Mermaid syntax. Creates visual representations of system architecture, database schemas, component r146skills.sh installs
5webmaxru avatarenonic-webhook-integratorwebmaxru/enonic-agent-skillsSets up Enonic XP event listeners, webhook configurations, and external system integrations triggered by content lifecycle events. Covers lib-event listener reg144skills.sh installs
6postplusai avatarxiaohongshu-article-packagerpostplusai/postplus-skillsLay out an existing draft or script into a Xiaohongshu image-post or long-image package without rewriting the source. Use this when the user wants pagination, h138skills.sh installs