The Voltaire Pattern: Primitives + Copyable Skills
Voltaire splits Ethereum engineering into two layers: Primitives (Address, Abi, Hex, Keccak256, Transaction) are spec-defined and rarely change — they belong in node_modules. Higher-level wrappers (retry policies, contract helpers, React hooks) vary wildly from app to app — they belong in your codebase as a Skill.
Step-by-Step: Build Your Own Typed ERC-20 Skill
1
Define the minimal ERC-20 ABI once
Create
src/skills/erc20.ts. Keep only the functions your app actually calls — zero dead ABI bloat.2
Add a tiny EIP-1193 eth_call helper
Accept any standard EIP-1193 provider (
window.ethereum, HttpProvider, or a mock in tests):3
Use it with full compile-time safety
4
Tailor it in 10 seconds (or let your AI agent do it)
Need an in-memory cache for
decimals() and symbol() (they never change)? Edit 4 lines directly inside src/skills/erc20.ts. Need Effect.ts typed errors, retries, and circuit breakers out of the box? Check out voltaire-effect.You can also connect Voltaire’s MCP server so Claude Code, Cursor, or Codex can generate custom Skills from any contract ABI in your project.What You Built
- A 40-line, dependency-free, branded-type ERC-20 reader backed by
@tevm/voltaire. - Complete control over transport, caching, error handling, and logging — with zero framework lock-in.
Where to Go Next
Browse Prebuilt Skills
Copy tested implementations for providers, multicall, permits, Uniswap v4, Aave v3, Safe, and React Query.
API Reference
Explore the full K&R reference for all Voltaire primitives, crypto modules, and EVM instructions.

