{
 "kind": "tool",
 "slug": "wagmi",
 "path": "tools/wagmi/",
 "name": "wagmi",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Crypto and web3",
   "tools/web3/"
  ]
 ],
 "lead": "React hooks library for Ethereum interactions and wallet connections.",
 "chips": [
  {
   "label": "Crypto and web3",
   "path": "tools/web3/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install wagmi"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/wevm/wagmi"
  },
  {
   "label": "Website",
   "href": "https://github.com/wevm/wagmi#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/wevm/wagmi"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 3, 2026. ",
   "src": "https://github.com/wevm/wagmi"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "18 projects",
   "status": "info",
   "sub": "#4 of 155 in its category",
   "note": "Dependency in 18 public GitHub projects set up for AI coding agents that we scanned (0.3%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://wagmi.sh/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What wagmi does",
   "parts": [
    {
     "t": "prose",
     "text": "wagmi wraps Viem's blockchain calls in React Hooks and routes them through TanStack Query, so the chains in your config and your contract ABIs become TypeScript types and repeated RPC reads are cached and deduplicated."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "wagmi popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "67",
       "of": "/ 100",
       "l": "Gid Score, #576 overall"
      },
      {
       "n": "1.8M",
       "l": "downloads a week, npm"
      },
      {
       "n": "6,770",
       "l": "GitHub stars"
      },
      {
       "n": "18",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How wagmi is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "wagmi is a dependency in 18 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 778 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is viem (47 projects).",
      "Projects that use it most often also use viem (98.5%), TanStack Query (77.8%), React (91.4%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "10 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "8 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "6 projects, 0.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 98.5% of its projects",
       "v": "viem",
       "path": "tools/viem/"
      },
      {
       "l": "In 77.8% of its projects",
       "v": "TanStack Query",
       "path": "tools/tanstack-react-query/"
      },
      {
       "l": "In 91.4% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 62.9% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 41.0% of its projects",
       "v": "RainbowKit",
       "path": "tools/rainbow-me/"
      },
      {
       "l": "In 71.9% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 36.1% of its projects",
       "v": "ethers.js",
       "path": "tools/ethers/"
      },
      {
       "l": "In 71.5% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "wagmi in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Types inferred from your ABI",
       "v": "The maintainers write that you \"often just need to provide an ABI\". wagmi then gives you autocomplete, type inference and static validation, so type errors surface before users hit them."
      },
      {
       "l": "chainId limited to the chains you configured",
       "v": "You can register your config with a <code>declare module 'wagmi'</code> block or pass it through a hook's config property. After that, <code>useBlockNumber</code> only accepts the IDs of the configured chains. In the docs example, <code>chainId: 123</code> is a type error because only Mainnet and Sepolia are set up."
      },
      {
       "l": "Reads go through TanStack Query",
       "v": "The Why page warns that careless fetching can \"cost thousands in RPC compute units.\" wagmi's answer is TanStack Query, which brings caching, deduplication and persistence."
      },
      {
       "l": "Data refreshes when wallet, block or network change",
       "v": "The comparison page on wagmi's docs site lists two more pros for wagmi: auto-refresh on wallet, block and network changes, and multicall support."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "More verbose at first, by design",
       "v": "The maintainers say the APIs \"might seem more verbose at first.\" They present this as the price of small building blocks that are easy to move, change and remove."
      },
      {
       "l": "Nested providers before the first hook",
       "v": "Setup does not stop at installing wagmi. You also install Viem and TanStack Query, then nest a <code>QueryClientProvider</code> with its own <code>QueryClient</code> inside <code>WagmiProvider</code>."
      },
      {
       "l": "Fewer built-in connectors than web3-react",
       "v": "The comparison page on wagmi's docs site lists one con for wagmi: it has fewer built-in connectors than web3-react. The page says it aims to be unbiased and invites readers to suggest changes."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about wagmi",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/wevm",
        "Own page: https://drips.network/wevm.eth",
        "16 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "viem: Ethereum interface wagmi runs on",
        "@tanstack/react-query: Caching and request layer",
        "react: UI library for the hooks",
        "@rainbow-me: Wallet connect UI",
        "next: React framework",
        "ethers: Ethereum library, adapters in docs"
       ]
      },
      {
       "title": "More in Crypto and web3",
       "path": "tools/web3/",
       "items": [
        {
         "text": "ethers.js",
         "path": "tools/ethers/"
        },
        {
         "text": "Solana Web3.js",
         "path": "tools/solana-web3-js/"
        },
        {
         "text": "TweetNaCl.js",
         "path": "tools/tweetnacl/"
        },
        {
         "text": "Hardhat",
         "path": "tools/hardhat/"
        },
        {
         "text": "OpenZeppelin Contracts",
         "path": "tools/openzeppelin/"
        },
        {
         "text": "Solana SPL Token",
         "path": "tools/solana-spl-token/"
        },
        {
         "text": "Hardhat Toolbox",
         "path": "tools/nomicfoundation-hardhat-toolbox/"
        },
        {
         "text": "Metaplex",
         "path": "tools/metaplex-foundation/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "wagmi",
       "me": true,
       "facts": [
        "MIT",
        "Gid 67",
        "1.8M/wk"
       ]
      },
      {
       "name": "viem",
       "why": "TypeScript interface for Ethereum with type-safe interactions.",
       "path": "tools/viem/",
       "facts": [
        "MIT",
        "Gid 73",
        "10.7M/wk"
       ]
      }
     ],
     "more": "Compare wagmi with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install wagmi"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## wagmi\n- Install the peers explicitly: `wagmi viem@2.x @tanstack/react-query`. For new projects, the docs recommend `create wagmi` instead.\n- Build the config with `createConfig`, and give every chain in `chains` a matching entry in `transports` (for example `[mainnet.id]: http()`).\n- Wrap the app in `WagmiProvider`, then put `QueryClientProvider` with a `new QueryClient()` inside it. Hooks only work in components under both providers.\n- Register the config (`declare module 'wagmi' { interface Register { config: typeof config } }`) or pass the hook config property, so that `chainId` is typed to the configured chains.\n- In query hooks such as `useEnsName`, handle the `status` values `'pending'` and `'error'` before you render `data`.\n- Check the installed major version. 2.x docs live at 2.x.wagmi.sh, and there are migration guides for v1 to v2 and v2 to v3.\n- For Markdown docs written for language models, read `https://wagmi.sh/llms.txt` or `/llms-full.txt`.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm wagmi"
  ],
  [
   "Category",
   "Crypto and web3"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "@wagmi/connectors@8.2.0, August 27, 2026"
  ],
  [
   "On GitHub since",
   "November 2021"
  ],
  [
   "Gid Score",
   "66.6"
  ],
  [
   "Rank in category",
   "#4 of 155"
  ],
  [
   "GitHub",
   "wevm/wagmi"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "Used by Coinbase, Stripe, Shopify, Uniswap, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/wevm.png"
}