Skip to content
Back to skills

Wagmi React Overview

ASecurity

React hooks library for Ethereum built on viem and TanStack Query. Use when building React apps with wallet connections and contract interactions.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
developmenttypescriptbashreact

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 10, 2026

npx -y skills add cyotee/indexedex --skill wagmi-react-overview --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wagmi React Overview?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wagmi React Overview
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyotee-wagmi-react-overview/badge)](https://www.skillsdirectory.com/skills/cyotee-wagmi-react-overview)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wagmi-react-overview
description: React hooks library for Ethereum built on viem and TanStack Query. Use when building React apps with wallet connections and contract interactions.
---

# Wagmi-React Overview

React hooks for Ethereum.

## Install

```bash
pnpm add wagmi viem@2.x @tanstack/react-query
```

## Quick Start

```typescript
// config.ts
import { createConfig, http } from 'wagmi'
import { mainnet, sepolia } from 'wagmi/chains'

export const config = createConfig({
  chains: [mainnet, sepolia],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
})
```

```typescript
// App.tsx
import { WagmiProvider } from 'wagmi'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { config } from './config'

const queryClient = new QueryClient()

function App() {
  return (
    <WagmiProvider config={config}>
      <QueryClientProvider client={queryClient}>
        <YourComponents />
      </QueryClientProvider>
    </WagmiProvider>
  )
}
```

## Skills

- **Providers**: `wagmi-react-providers` - WagmiProvider setup
- **Connect**: `wagmi-react-connect` - Wallet connection hooks
- **Read**: `wagmi-react-read` - useReadContract
- **Write**: `wagmi-react-write` - useWriteContract
- **Hooks**: `wagmi-react-hooks` - All hooks overview

## TypeScript Registration

```typescript
import { useBlockNumber } from 'wagmi'

declare module 'wagmi' {
  interface Register {
    config: typeof config
  }
}

// Now chainId is typed
useBlockNumber({ chainId: mainnet.id }) // ✅
useBlockNumber({ chainId: 123 })        // ❌ type error
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…