wagmi-react-connect

Connect crypto wallets in React using wagmi hooks for session management.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Wallet connection hooks for React that simplify connecting crypto wallets and monitoring connection state across the UI.

Core Features & Use Cases

  • Use Connect: expose a connect function and connectors to initiate wallet connections.
  • Use Account / Use Connection: read address, chainId, and connection status to render responsive UI.
  • Use Disconnect: provide a simple way to disconnect the active wallet.
  • Use Switch Chain: offer chain switching capabilities for multi-network apps.
  • Auto Reconnect: optionally reconnect previously connected wallets on mount.

Quick Start

Render the connect UI in your React component and call connect with a selected connector to establish a wallet session.

Frequently Asked Questions about wagmi-react-connect

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

FAQPage Schema
How do I connect an Ethereum wallet in a React app?

To connect an Ethereum wallet in a React app, implement the useConnect hook to expose a connect function and connectors that initiate wallet sessions. This allows users to securely link their crypto wallets to your frontend interface.

How do I monitor wallet connection state across React components?

You monitor wallet connection state across React components by using the useAccount and useConnection hooks. These read the active address, chainId, and connection status to render a responsive UI that reflects the current wallet session.

Can I automatically reconnect a previously connected Ethereum wallet on mount?

Yes, you can automatically reconnect a previously connected Ethereum wallet on mount. The hooks implement an optional auto reconnect feature that restores prior wallet sessions when the React application loads.

What is the best way to switch blockchain networks in a React multi-network app?

The best way to switch blockchain networks in a React multi-network app is using the useSwitchChain hook. It provides chain switching capabilities, allowing users to easily change their active network within your frontend application.

Do I need any extra dependencies to use wagmi hooks for wallet authentication?

No extra dependencies are required to use wagmi hooks for wallet authentication beyond the standard React and wagmi library setup. The Skill manages wallet state natively using useConnect, useAccount, and useDisconnect without external components.