
Swap Integration
Integration guide for Uniswap swaps via Trading API, Universal Router SDK, or direct smart contract calls.
- skills.sh installs
- 2.3K
- GitHub stars
- 236
- last updated
- Aug 21, 2026
What it does
- Covers swap integration across frontends, backends, scripts, and smart contracts, with a routing-method decision table
- Includes Trading API flow (
/permissions,/check_approval,/quote,/swap) plus Universal Router SDK and contract command encoding - Enforces input validation for addresses, chain IDs, and amounts, and requires user confirmation before any transaction executes
- Designed for developers building swap functionality on Uniswap who need Trading API or Universal Router guidance
Install
$ npx -y skills add uniswap/uniswap-ai --skill swap-integration -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Swap Integration
Integrate Uniswap swaps into frontends, backends, and smart contracts.
Prerequisites
This skill assumes familiarity with viem basics (client setup, account management, contract interactions, transaction signing). Install the uniswap-viem plugin for comprehensive viem/wagmi guidance: claude plugin add @uniswap/uniswap-viem
Quick Decision Guide
| Building... | Use This Method |
|---|---|
| Frontend with React/Next.js | Trading API |
| Backend script or bot | Trading API |
| Smart contract integration | Universal Router direct calls |
| Need full control over routing | Universal Router SDK |
Routing Types Quick Reference
Details
- Repository
- github.com/uniswap/uniswap-ai
- Categories
- Web3 & Crypto, Backend & APIs
- First seen
- Apr 16, 2026
More from uniswap/uniswap-ai
All 10Similar to Swap Integration
More Web3 & Crypto
v4-sdk-integrationSkilluniswap/uniswap-ai762 installsReady-to-use SDK guide for building Uniswap v4 swap and liquidity flows through the Universal Router, PositionManager, and StateView contracts.
swap-plannerSkilluniswap/uniswap-ai1.2K installsPlan token swaps and token discovery on Uniswap-supported chains, then generate interface deep links.
Stoa: swaps on Robinhood ChainMCP serverstoadex3 starsSwap router across Stoa maker pools and Uniswap, Aero, Ramses, and Liquidity Book venues on Robinhood Chain.
emblem-token-swapSkillemblemcompany/agent-skills8.6K installsMulti-chain token swap and cross-chain bridging skill with quote-first, confirm-before-execute safety.
crypto-com-appSkillcrypto-com/crypto-agent-trading1.5K installsExecute crypto trades, manage fiat deposits and withdrawals, and query balances via the Crypto.com APP API.
dflowSkillsendaifun/skills183 installsComplete DFlow Solana integration guide covering spot swaps, prediction markets, and streaming data APIs.