Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

viem-integration

Skill by Uniswap

Integrates EVM blockchains into TypeScript and JavaScript apps using the viem library. Aimed at developers building Node.js backends, scripts, or React frontends that read chain data or send transactions.

  • Score 85
  • 236 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install viem-integration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Uniswap/uniswap-ai /tmp/uniswap-ai && mkdir -p ~/.claude/skills && cp -r /tmp/uniswap-ai/packages/plugins/uniswap-viem/skills/viem-integration ~/.claude/skills/viem-integration

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install viem-integration in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

viem Integration is an agent skill from Uniswap that guides an AI assistant through building EVM blockchain integrations with the viem library in TypeScript or JavaScript. It covers public clients for reading balances and contract data, wallet clients for sending transactions and writing to contracts, and transports such as http, webSocket and custom. The skill includes quick start examples, unit and address utilities, hashing helpers and typed error handling.

It recommends viem with http transport for Node.js scripts and backends, wagmi hooks for React or Next.js frontends, and webSocket transport for real-time event monitoring. It sets input validation rules, such as checking addresses with isAddress and loading private keys from environment variables. It is aimed at developers working on EVM blockchain apps with TypeScript.

Written from the project's SKILL.md and checked against it.

What it can do

  • Read balancesFetches native ETH balances with a public client and formats them with formatEther.
  • Read contractsCalls view functions such as balanceOf on ERC-20 contracts using parsed ABIs.
  • Send transactionsSends ETH transfers from a wallet client using an account derived from a private key.
  • Write to contractsSimulates a contract call before executing it, then waits for the transaction receipt.
  • Choose transportsExplains http, webSocket and custom transports and when to use each.
  • Unit conversionConverts between wei, ETH and token units with parseEther, formatUnits and related helpers.
  • Address utilitiesValidates and checksums addresses with isAddress and getAddress.
  • Error handlingCatches typed viem errors such as ContractFunctionExecutionError and InsufficientFundsError.

What you need

  • npm for installing viem
  • A TypeScript or JavaScript project
  • A PRIVATE_KEY environment variable for write operations

Try asking

  • Read the USDC balance of this wallet address using viem
  • Write a viem script that sends 0.1 ETH from my wallet
  • Set up wagmi hooks in my Next.js app to connect a wallet

Good to know

  • Targets EVM blockchains only.
  • RPC URLs must use https:// or wss:// protocols.
  • Private keys must never be hardcoded and should come from process.env.PRIVATE_KEY.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: packages/plugins/uniswap-viem/skills/viem-integration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGlobGrepBash(npm:*)Bash(npx:*)WebFetchTask(subagent_type:viem-integration-expert)

  • SKILL.md7 KB
  • references/accounts-and-keys.md9 KB
  • references/clients-and-transports.md11 KB
  • references/contract-patterns.md11 KB
  • references/reading-data.md12 KB
Show all 7 files
  • references/wagmi-react.md14 KB
  • references/writing-transactions.md10 KB

Alternatives to viem-integration

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

viem-integration: common questions

Which viem client should I use for reading or writing?

The source says PublicClient handles read-only operations such as getting balances and reading contracts. WalletClient handles write operations such as sending transactions and signing messages.

How does this skill handle private keys?

The source says private keys must never be hardcoded. It instructs using process.env.PRIVATE_KEY with runtime validation.

Does it cover React and Next.js frontends?

Yes. The source recommends wagmi hooks, which are built on viem, for React and Next.js frontends and includes a separate wagmi React reference file.

How do I install viem-integration?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is viem-integration free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is viem-integration safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to viem-integration?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

viem-integration Install

Add to stack

Loading.