prepare_uniswap_v3_collect
Harvest uncollected fees and tokens owed from a Uniswap V3 LP position by building an unsigned collect transaction. Requires ownership of the tokenId.
Instructions
Build an unsigned Uniswap V3 LP collect transaction — harvests every token the position is owed (decreased liquidity from prior prepare_uniswap_v3_decrease_liquidity calls + accrued swap fees) up to uint128.max per side. Hard-refuses when the tokenId is not owned by wallet. The protocol auto-settles uncollected fee growth into tokensOwed inside the call, so even a position with tokensOwed{0,1}=0 may receive tokens. recipient defaults to the wallet; pass an address to send the harvest elsewhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| chain | No | ethereum | |
| tokenId | Yes | ERC-721 tokenId of the LP NFT to harvest fees + tokensOwed from. Must be owned by `wallet`. | |
| recipient | No | Address to receive the harvested tokens. Default: wallet (the position owner). |