uniswap avatar

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-code

Installs 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/backendviem with http transport
React/Next.js frontendwagmi hooks (built on viem)
Real-time event monitoringviem with webSocket transport
Browser wallet integrationwagmi 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:

ClientPurposeExample Use
PublicClientRead-only operationsGet balances, read contracts, fetch logs
WalletClientWrite operationsSend transactions, sign messages

Transports

Sponsors

Details

Repository
github.com/uniswap/uniswap-ai
Categories
Finance & Trading, Web3 & Blockchain
First seen
May 16, 2026

More from uniswap/uniswap-ai

All 10
1nvidia avatarcuopt-numerical-optimization-api-pythonnvidia/skillsSolve LP, MILP, QP (beta) with cuOpt Python API — linear/quadratic objectives, integer variables, scheduling, portfolio, least squares.1.7Kskills.sh installs
2K-Dense-AI avatarbulk-rnaseqK-Dense-AI/scientific-agent-skillsEnd-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, fe1.5Kskills.sh installs
3daymade avatarexcel-automationdaymade/claude-code-skillsCreate, parse, and control Excel files on macOS. Professional formatting with openpyxl, complex xlsm parsing with stdlib zipfile+xml for investment bank financi1.5Kskills.sh installs
4affaan-m avatarito-market-intelligenceaffaan-m/eccResearch prediction-market events, venues, underliers, liquidity, and news context for Itô basket workflows. Use for read-only market intelligence, API-gated It1.5Kskills.sh installs
5forcedotcom avatarusing-mobile-native-capabilitiesforcedotcom/sf-skillsBuild a Salesforce LWC that uses native mobile device capabilities — barcode scanner, biometrics, location, NFC, calendar, contacts, document scanner, geofencin1.5Kskills.sh installs
6ruvnet avatarsecurity-auditruvnet/rufloComprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enfo1.4Kskills.sh installs