/wagmi:wagmi-react-readfrom wagmi
useReadContract hook for reading smart contract data. Use when querying contract view/pure functions in React.
Ships in wagmi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
useReadContract and related hooks.
import { useReadContract } from 'wagmi'
const abi = [
{ type: 'function', name: 'balanceOf', stateMutability: 'view',
inputs: [{ name: 'account', type: 'address' }],
outputs: [{ name: 'balance', type: 'uint256' }]
},
{ type: 'function', name: 'decimals', stateMutability: 'view',
inputs: [],
outputs: [{ name: '', type: 'uint8' }]
}
] as const
function TokenBalance({ address, tokenAddress }) {
const { data, isError, isLoading } = useReadContract({
abi,
address: tokenAddress,
functionName: 'balanceOf',
args: [address]
})
if (isLoading) return <div>Loading...</div>
if (isError) return <div>Error</div>
return <div>Balance: {data?.toString()}</div>
}
// Auto-refetch when block changes
const { data } = useReadContract({
abi,
address,
functionName: 'balanceOf',
args: [address],
watch: true
})
import { useReadContracts } from 'wagmi'
const { data } = useReadContracts({
contracts: [
{ abi, address: tokenA, functionName: 'balanceOf', args: [user] },
{ abi, address: tokenB, functionName: 'balanceOf', args: [user] },
{ abi, address: tokenC, functionName: 'balanceOf', args: [user] },
]
})
const [balanceA, balanceB, balanceC] = data ?? []
const { data } = useReadContract({
abi,
address,
functionName: 'balanceOf',
args: [address],
query: {
enabled: !!address && address !== '0x...', // conditional
staleTime: 60 * 1000, // cache for 1 minute
refetchInterval: 10000, // poll every 10 seconds
}
})
const { data } = useReadContract({
abi,
address,
functionName: 'balanceOf',
args: [address],
blockTag: 'latest' // 'latest', 'safe', 'finalized'
})
const { data, refetch, isRefetching } = useReadContract({ ... })
<button onClick={() => refetch()} disabled={isRefetching}>
Refresh
</button>
What SKILL.md sets; muted values are Claude Code's defaults
wagmi@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin wagmi12 skills in this plugin
/wagmi-configWagmi createConfig setup with chains and transports. Use when configuring multi-chain support and network connections./wagmi-connectorsWallet connectors for MetaMask, WalletConnect, injected, and more. Use when setting up wallet connections./wagmi-overviewVanilla JS Ethereum library built on viem. Use for wallet connections, contract interactions, and blockchain queries./wagmi-react-connectWallet connection hooks for React. Use when connecting wallets and managing connection state.Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Jul 20, 2026