/wagmi:wagmi-write-contractfrom wagmi
Write to contracts and send transactions. Use when executing state-changing contract functions.
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.
Send transactions to contract functions.
import { writeContract } from '@wagmi/core'
import { config } from './config'
const abi = [
{ type: 'function', name: 'transfer', stateMutability: 'nonpayable',
inputs: [{ name: 'to', type: 'address' }, { name: 'amount', type: 'uint256' }],
outputs: [{ type: 'bool' }]
}
] as const
const hash = await writeContract(config, {
abi,
address: tokenAddress,
functionName: 'transfer',
args: [recipientAddress, 1000000n]
})
Validate transaction before sending:
import { simulateContract, writeContract } from '@wagmi/core'
const { request } = await simulateContract(config, {
abi,
address: tokenAddress,
functionName: 'transfer',
args: [recipient, 1000000n]
})
const hash = await writeContract(config, request)
import { parseGwei, parseEther } from 'viem'
const hash = await writeContract(config, {
abi,
address: tokenAddress,
functionName: 'transfer',
args: [to, amount],
// EIP-1559
maxFeePerGas: parseGwei('20'),
maxPriorityFeePerGas: parseGwei('2'),
// Or legacy
gasPrice: parseGwei('10'),
// Or set gas manually
gas: 50000n,
// Value (for payable functions)
value: parseEther('0.01')
})
import { writeContractSync } from '@wagmi/core'
const receipt = await writeContractSync(config, {
abi,
address: tokenAddress,
functionName: 'transfer',
args: [to, amount]
})
console.log(receipt.status) // 'success' | 'reverted'
console.log(receipt.blockNumber)
const hash = await writeContract(config, {
abi,
address: tokenAddress,
functionName: 'transfer',
args: [to, amount],
account: '0x...' // specific account (must be connected)
})
import { mainnet } from '@wagmi/core/chains'
// Ensure transaction goes to specific chain
const hash = await writeContract(config, {
abi,
address: tokenAddress,
functionName: 'transfer',
args: [to, amount],
chainId: mainnet.id // will throw if wrong chain
})
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