Docs · Shield
React package
For dApps built on wagmi. The package sees every wallet connection, including the ones the plain script cannot hear.
Checked against the product on 2026-11-12.
Why a package
The plain script hears wallets that announce themselves as browser extensions. WalletConnect, Coinbase Smart Wallet and other passkey wallets connect without that announcement, so the script misses them. The package reads wagmi's account state, which sees every connection, and passes it to Shield. It works with RainbowKit, ConnectKit, Reown AppKit and plain wagmi.
Install
npm install @sybilscan/shield-react
Peer dependencies are react 18 or later and wagmi 2 or later.
Use
Place the component anywhere inside your WagmiProvider. It loads the Shield script for you, so you do not add the script tag as well.
import { SybilShield } from "@sybilscan/shield-react";
<WagmiProvider config={config}>
<SybilShield projectId="shp_your_project_id" />
{/* the rest of your app */}
</WagmiProvider>Read the live verdict
To show the connected wallet's verdict in your interface, use the hook.
import { useSybilShield } from "@sybilscan/shield-react";
const { verdict } = useSybilShield({ projectId: "shp_your_project_id" });
// verdict: { verdict: "allow" | "review" | "deny", score, confidence, block? } | nullverdictis null until the wallet has been scored, which takes a few seconds.- Use it for interface decisions only, such as a warning or a hidden button. A farm controls its own browser.
Gate rewards on your server
To decide who is paid, check the wallet from your server at claim time with the project's secret key. The verdict API is the real enforcement point.
const res = await fetch(`https://sybilscan.xyz/api/shield/v1/verdict?wallet=${wallet}`, {
headers: { Authorization: `Bearer ${process.env.SYBILSCAN_SHIELD_KEY}` },
});
const v = await res.json();
if (v.block) reject();
else if (!v.seen || v.verdict === "review") hold();