wagmi-react-providers

Wire WagmiProvider and React Query into React apps for blockchain interactions.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/cyotee/crane --skill wagmi-react-providers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wagmi-react-providers
Source: https://github.com/cyotee/crane/tree/main/.claude/skills/wagmi-react-providers
Command: npx skills add https://github.com/cyotee/crane --skill wagmi-react-providers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Wagmi-react provides a ready-to-use React context layer for blockchain apps, eliminating boilerplate to connect Wagmi's config with TanStack Query and app components.

Core Features & Use Cases

  • Provides WagmiProvider and QueryClientProvider wrappers for global app state
  • Supports SSR initialState and useConfig hook for accessing config
  • Works with standard Wagmi and React Query configurations for wallet connections

Quick Start

Initialize WagmiProvider and QueryClientProvider around your app to enable wallet connections and React query state.

Frequently Asked Questions about wagmi-react-providers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Wagmi and React Query in a React blockchain app?

To set up Wagmi and React Query, you need to wrap your app with WagmiProvider and QueryClientProvider to enable global wallet connections and query state. This eliminates the boilerplate required to wire blockchain config into app components.

What is the purpose of initialState when wiring WagmiProvider for SSR?

InitialState for WagmiProvider supports server-side rendering by passing hydrated query state to the client. This ensures your blockchain app maintains cached query data across SSR and initial component renders.

Does this Wagmi React integration support useConfig hook access?

Yes, this Wagmi React integration supports the useConfig hook for accessing the Wagmi config object. It works with standard configurations to manage wallet connections across your components.

Can I use standard Wagmi configurations for wallet connections with this setup?

You can use standard Wagmi configurations for wallet connections with this React setup. It applies to frontend projects requiring chain configuration and query caching across components.

What is the best way to eliminate React Query boilerplate for blockchain interactions?

The best way to eliminate React Query boilerplate is using a ready-to-use context layer that wires WagmiProvider with TanStack Query. This provides global app state for wallet connections without manual setup.

Why do I need both WagmiProvider and QueryClientProvider for frontend wallet connections?

You need both WagmiProvider and QueryClientProvider because Wagmi relies on TanStack Query for data fetching and caching. Combining them provides the global context required for managing wallet connections and blockchain state.