Uniswap V4 LP Manager - Complete 1-Shot Template
A production-ready guide for building a Uniswap V4 liquidity management frontend. Add this to your LLM context and ask it to "build me a Uniswap V4 LP manager" - it should work.
Table of Contents
- Official Contract Addresses
- Subgraph Queries
- Setup & Dependencies
- Core Types
- Chain & Client Configuration
- Position Discovery
- Reading Position Data
- Token Approvals (Permit2)
- Minting New Positions
- Increasing Liquidity
- Decreasing Liquidity
- Collecting Fees
- Complete React Frontend
- API Routes (Next.js)
- Common Gotchas
Official Contract Addresses