uniswap

Access Uniswap Trading API for quotes, approvals, swaps, and deep links.

4|3|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/qhkm/zeptoclaw-skills --skill uniswap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uniswap
Source: https://github.com/qhkm/zeptoclaw-skills/tree/main/uniswap
Command: npx skills add https://github.com/qhkm/zeptoclaw-skills --skill uniswap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Accessing Uniswap's Trading API programmatically to fetch quotes, verify token approvals, execute swaps, and generate UI-deep links—without manual UI interactions.

Core Features & Use Cases

  • Get swap quotes for token pairs on supported chains.
  • Check and manage ERC20 approvals before swaps to prevent failures.
  • Execute a swap via the Trading API with a guided, end-to-end flow.
  • Generate deep links to pre-filled swap UIs for seamless user experiences.
  • Ideal for DeFi bots, wallets, and automation orchestrated by AI agents.

Quick Start

Obtain an API key, set the UNISWAP_API_KEY environment variable, and request a swap quote for your desired token pair.

Frequently Asked Questions about uniswap

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

FAQPage Schema
How do I execute Uniswap swaps programmatically with an API?

You can execute Uniswap swaps programmatically by calling the Trading API swap endpoint with your API key and target token addresses. This automates the end-to-end flow including quote retrieval and approval verification without manual UI interactions.

How do I check ERC20 approvals before executing a swap?

You check ERC20 approvals before a swap by using the check_approval endpoint in the Uniswap Trading API. This verifies that the required token spending permissions are set, preventing swap execution failures across Ethereum and compatible chains.

Can I generate deep links to pre-filled Uniswap swap UIs?

Yes, you can generate deep links to pre-filled Uniswap swap UIs using the Trading API deep-link endpoint. This creates a seamless user experience by directing users to a swap interface with token pairs and parameters already configured.

What do I need to get a Uniswap swap quote for token pairs?

To get a Uniswap swap quote, you need an API key set as the UNISWAP_API_KEY environment variable, proper request headers, and the specific token contract addresses. The API returns quotes for supported pairs on Ethereum and compatible chains.

Does the Uniswap Trading API support automated DeFi bot workflows?

Yes, the Uniswap Trading API supports automated DeFi bot workflows by providing programmatic access to quotes, approvals, and swaps. It is ideal for AI-enabled integrations, wallets, and automated trading orchestrated by AI agents.

When should I manage token approvals via the API instead of the UI?

You should manage token approvals via the API when building DeFi bots, wallets, or automation orchestrated by AI agents. Programmatic check_approval prevents swap failures in automated workflows where manual UI interaction is not possible.