
Viem Integration
This is a solid foundation for working with Ethereum and EVM chains in TypeScript. You get practical examples for the bread and butter stuff: reading balances, calling contracts, sending transactions, and proper account handling with environment variables. The decision guide up front (node vs React vs real-time) is actually helpful, and the input validation rules are the kind of thing that prevents foot-shooting with user addresses and private keys. It's built by Uniswap, so the smart contract interaction patterns are battle-tested. The reference docs are split out sensibly, though you'll still hit the official viem docs for edge cases. If you're building anything that touches a blockchain from JavaScript, this gets you past the setup boilerplate fast.
- skills.sh installs
- 1.7K
- GitHub stars
- 236
- last updated
- Aug 21, 2026
Install
$ npx -y skills add uniswap/uniswap-ai --skill viem-integration --agent claude-codeInstalls into .claude/skills of the current project.
Files
viem Integration
Integrate EVM blockchains using viem for TypeScript/JavaScript applications.
Quick Decision Guide
| Building... | Use This |
|---|---|
| Node.js script/backend | viem with http transport |
| React/Next.js frontend | wagmi hooks (built on viem) |
| Real-time event monitoring | viem with webSocket transport |
| Browser wallet integration | wagmi or viem custom transport |
Installation
# Core library
npm install viem
# For React apps, also install wagmi
npm install wagmi viem @tanstack/react-query
Core Concepts
Clients
viem uses two client types:
| Client | Purpose | Example Use |
|---|---|---|
| PublicClient | Read-only operations | Get balances, read contracts, fetch logs |
| WalletClient | Write operations | Send transactions, sign messages |
Transports
Sponsors
Details
- Repository
- github.com/uniswap/uniswap-ai
- Categories
- Finance & Trading, Web3 & Blockchain
- First seen
- May 16, 2026