uniswap-v4

Swap tokens and query Uniswap V4 pools across Base and Ethereum.

Updated Oct 17, 2025
One-click install
npx skills add https://github.com/iamcapote/emptyrepo --skill uniswap-v4-iamcapote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uniswap-v4
Source: https://github.com/iamcapote/emptyrepo/tree/main/skills/allied/uniswap-v4
Command: npx skills add https://github.com/iamcapote/emptyrepo --skill uniswap-v4-iamcapote

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Uniswap V4 integration enables developers to perform token swaps and retrieve live pool data directly from Uniswap V4, reducing manual steps and on-chain querying.

Core Features & Use Cases

  • Swap tokens via the Uniswap V4 Universal Router with slippage protection and deterministic execution.
  • Read pool state, price, tick, liquidity, and retrieve swap quotes using the V4Quoter.
  • Find the best pool for a given token pair across Base, Ethereum, and Base Sepolia.
  • Set up Permit2 approvals for the Universal Router to streamline ERC20 token approvals.
  • Use with TypeScript (strict types) and environment-provided PRIVATE_KEY for write operations.

Quick Start

Swap a small amount of ETH for a target ERC-20 using Uniswap V4 on Base or Ethereum.

Frequently Asked Questions about uniswap-v4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I swap tokens on Uniswap V4 using the Universal Router?

Token swaps on Uniswap V4 use the Universal Router with slippage protection and deterministic execution. Provide an environment PRIVATE_KEY for write operations to swap ETH for ERC-20 tokens across Base, Ethereum, or Base Sepolia.

How do I read pool state and get swap quotes on Uniswap V4?

Uniswap V4 pool-state queries read price, tick, and liquidity directly from pools. Swap quotes are retrieved using the V4Quoter contract to find the best available pool for a given token pair.

Do I need Permit2 approvals to execute on-chain swaps on Uniswap V4?

Yes, Permit2 approvals are required to streamline ERC-20 token approvals for the Universal Router. This workflow must be set up before executing on-chain token swaps on Uniswap V4.

Does Uniswap V4 token swapping work on Base and Ethereum?

Uniswap V4 token swapping works across Base, Ethereum, and Base Sepolia. You must provide RPC URLs for your chosen networks to execute on-chain swaps and pool-state queries.

What are the TypeScript requirements for Uniswap V4 on-chain swaps?

Uniswap V4 on-chain swaps require TypeScript with strict types. You must supply an environment PRIVATE_KEY for write operations and RPC URLs for network connectivity.