prepare_uniswap_v3_decrease_liquidity
Prepare an unsigned Uniswap V3 decrease-liquidity transaction. Remove a percentage or exact amount of liquidity from a tokenId you own.
Instructions
Build an unsigned Uniswap V3 LP decreaseLiquidity transaction — removes liquidity from an existing position by tokenId. Pass liquidityPct: 100 for a full close-out (typical follow-up: prepare_uniswap_v3_collect, then optionally prepare_uniswap_v3_burn). Pass liquidity: "<raw>" for exact-amount accounting; the two args are mutually exclusive. Hard-refuses when the tokenId is not owned by wallet (would credit the actual owner) and when the position has zero liquidity (nothing to decrease). Withdrawn tokens become tokensOwed on the position — they do NOT move to the wallet until you call prepare_uniswap_v3_collect afterwards. This separation matches the on-chain protocol shape and lets the agent batch decrease+collect via rebalance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| chain | No | ethereum | |
| tokenId | Yes | ERC-721 tokenId of the LP NFT to decrease liquidity from. Must be owned by `wallet`. | |
| liquidityPct | No | Percentage of position liquidity to withdraw (1-100). Pass 100 for full close-out (typical follow-up: prepare_uniswap_v3_collect, then optionally burn). Mutually exclusive with `liquidity` — pass exactly one. | |
| liquidity | No | Raw liquidity to withdraw (decimal-string bigint). Use when you need exact accounting; otherwise prefer liquidityPct. Mutually exclusive with `liquidityPct`. | |
| slippageBps | No | Slippage tolerance in bps. Default 50; soft cap 100. | |
| acknowledgeHighSlippage | No | ||
| deadlineSec | No |