What problem does it solve? AI agents and developers frequently produce outdated ethers.js patterns, hallucinated contract interactions, and type-unsafe blockchain code. This Skill provides accurate, current viem patterns for reading blockchain state, sending transactions, and interacting with smart contracts on Ethereum and EVM-compatible chains with full TypeScript type safety. ## Core Features & Use Cases - Typed Contract Interaction: Read and write to smart contracts with end-to-end type inference from ABIs using as const assertions, including the simulate-then-execute pattern that catches reverts before spending gas. - Client Architecture: Configure PublicClient for reads, WalletClient for writes, and TestClient for local nodes, with HTTP, WebSocket, and fallback transports across 50+ built-in chain definitions. - Batching and Utilities: Batch reads via Multicall3, encode/decode ABI calldata, convert between wei/gwei/ether with bigint, and handle errors through the BaseError walk pattern. - Use Case: Build a dApp backend that checks ERC-20 balances across multiple tokens in one RPC call, approves a spender only when allowance is insufficient, and executes a swap with gas estimation and revert handling. ## Quick Start Ask the agent to create a viem public client for Ethereum mainnet and read the USDC balance of a given wallet address.