Swap Integration
ListedSeamlessly integrates Uniswap data and functionality into external applications via a flexible API layer.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add uniswap/uniswap-ai --skill swap-integration -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
uniswap
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: trade-api.gateway.uniswap.org.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
trade-api.gateway.uniswap.orgundeclaredWhat it found
- packages/plugins/uniswap-trading/skills/swap-integration/references/advanced-patterns.md:68contacts trade-api.gateway.uniswap.org
const swapRes = await fetch('https://trade-api.gateway.uniswap.org/v1/swap', {
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned uniswap/uniswap-ai at bff480cf46.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- bff480cf46
- Scanned
- 2 files, 1,991 lines
About this skill
What it does
This skill, provided by Uniswap, enables AI agents to interact with and utilize Uniswap's decentralized exchange (DEX) functionality. It allows agents to execute token swaps directly, retrieve real-time price data from liquidity pools, and potentially automate trading strategies based on market conditions. The integration aims to simplify the process of interacting with Uniswap for various applications.
When to use it
- Automated Trading: Build an agent that automatically executes trades based on predefined rules or algorithms within Uniswap's ecosystem.
- Price Monitoring: Create an agent that monitors specific token pairs and alerts users when prices reach certain thresholds.
- Portfolio Management: Develop an agent to rebalance a cryptocurrency portfolio by swapping tokens through Uniswap.
- Decentralized App (dApp) Integration: Integrate swap functionality into existing dApps for seamless user experience.
Key capabilities
- Token Swaps: Execute trades on the Uniswap DEX.
- Price Data Retrieval: Access real-time price information from liquidity pools.
- Automated Trading Strategies: Potential to build automated trading bots (not explicitly detailed).
Example prompts
- "Swap 1 ETH for DAI on Uniswap."
- "What is the current price of USDC in terms of USDT on Uniswap?"
- "Execute a trade to rebalance my portfolio, selling X token and buying Y token through Uniswap."
Tips & gotchas
- Requires familiarity with blockchain concepts and potentially private key management for transaction signing.
- Gas fees associated with transactions on the Ethereum network will apply when executing swaps.