A comprehensive tool for simulating Uniswap V3 swaps, calculating slippage, and determining optimal routing before executing on-chain transactions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install uniswap-swap-simulation
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install uniswap-swap-simulation using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Uniswap Swap Simulation skill provides developers with the ability to forecast the outcomes of decentralized exchange trades without risking capital. By interacting with the Uniswap QuoterV2 contract, it delivers precise data on expected output amounts, price impact, and gas costs. As a vital part of the Openclaw Skills ecosystem, it bridges the gap between raw blockchain data and actionable trading intelligence, enabling more sophisticated DeFi applications.
This skill is designed for technical users who need to evaluate the efficiency of a trade, considering factors like liquidity depth and routing complexity. It allows for the integration of professional-grade trading features into any agent-driven workflow, ensuring that users can optimize for the best execution price while maintaining a high level of security against common on-chain risks.
To integrate this functionality into your environment, ensure you have the necessary libraries installed as part of your Openclaw Skills setup:
npm install viem
Initialize the client and contract constants:
import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";
const client = createPublicClient({
chain: mainnet,
transport: http(),
});
const quoterV2Address = "0x61fFE014bA17989E743c5F6cB21bF9697530B21e";
This skill utilizes a structured data format to represent trade simulations and execution metrics within the Openclaw Skills framework:
| Attribute | Description | Data Type |
|---|---|---|
| amountOut | The forecasted amount of tokens to be received after the swap | BigInt |
| priceImpact | The percentage difference between the market price and execution price | Number |
| slippageBps | The basis points allowed for price movement (e.g., 50 for 0.5%) | Integer |
| path | The packed byte array representing the pool sequence for the swap | HexString |
| gasEstimate | The expected gas consumption for the specific swap path | BigInt |
Loading
A professional tool for AI agents to query and analyze Uniswap v3 and v4 pool metrics directly on-chain using viem.

A comprehensive design intelligence CLI and database for generating accessible, high-performance design systems from natural language.

A comprehensive framework for building production-grade web interfaces focusing on typography, layout, and accessibility.

A high-performance build system for JavaScript and TypeScript monorepos that leverages intelligent caching and parallel execution.

A technical CSS implementation skill providing production-ready patterns for layout, typography, and accessible interface design.

A production-grade blueprint for building horizontally scalable WebSocket hubs with Redis coordination and connection management.
