Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Interact with Uniswap — the largest decentralised exchange — via the Trading API. Get swap quotes, check token approvals, execute swaps, and generate deep links that open the Uniswap UI with pre-filled parameters.
Based on Uniswap AI — adapted for ZeptoClaw agents.
Response returns a ready-to-sign transaction with to, from, data, value, and gasLimit.
Important: Spread the quote response into the swap request body — don't wrap it in {"quote": ...}. Also strip any null fields like permitData: null before sending.
Generate a Uniswap Deep Link
Generate a URL that opens the Uniswap swap interface with parameters pre-filled:
# ETH → USDC on Ethereumecho"https://app.uniswap.org/swap?chain=ethereum&inputCurrency=ETH&outputCurrency=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&exactAmount=1&exactField=input"# USDC → ETH on Baseecho"https://app.uniswap.org/swap?chain=base&inputCurrency=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&outputCurrency=ETH&exactAmount=100&exactField=input"
Deep link parameters:
Parameter
Description
chain
ethereum, base, arbitrum, etc.
inputCurrency
Token address or ETH
outputCurrency
Token address or ETH
exactAmount
Amount in human-readable units
exactField
input or output
Supported Chains
Chain ID
Chain
Chain ID
Chain
1
Ethereum
8453
Base
10
Optimism
42161
Arbitrum
56
BNB Chain
42220
Celo
130
Unichain
43114
Avalanche
137
Polygon
81457
Blast
196
X Layer
7777777
Zora
324
zkSync
480
World Chain
Common Token Addresses
Token
Ethereum (1)
Base (8453)
WETH
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
0x4200000000000000000000000000000000000006
USDC
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
USDT
0xdAC17F958D2ee523a2206206994597C13D831ec7
—
DAI
0x6B175474E89094C44Da98b954EedeAC495271d0F
—
Tips
Quote freshness: Quotes expire quickly — get a fresh quote right before executing a swap
Slippage: Use 0.5 (0.5%) for stablecoins, 1.0–3.0 for volatile pairs
Chain IDs as strings: tokenInChainId and tokenOutChainId must be strings (e.g. "1"), not numbers
Permit2: When using Permit2, signature and permitData must both be present or both absent — never set permitData: null
Native ETH: Use ETH in deep links. For API calls, use the WETH address
Amount format: Amounts are in the token's smallest unit (wei for ETH = 18 decimals, 6 decimals for USDC)
Rate limits: Be mindful of API rate limits — cache quotes when displaying to users