# Ozmium Uniswap V3 LP Remove / Fee Collect

> Ozmium Uniswap V3 LP Remove / Fee Collect is a paid API for AI agents from ozmium.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates Uniswap V3 exit and fee-claim calldata (multicall of decreaseLiquidity, collect, unwrapWETH9, sweepToken) to remove liquidity or collect fees from a V3 position, unwrapping WETH to native ETH.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/lp/uni/remove
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-uniswap-v3-lp-remove-fee-collect-80b8fab4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ioV2vnZ1rIkIJUj3biWwa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ozmium-uniswap-v3-lp-remove-fee-collect-80b8fab4 -d '<json body>'
```

Example prompt: Generate the calldata to remove all my liquidity from Uniswap V3 position token ID 12345 — my wallet is 0xAbC...123 — and make sure the WETH gets unwrapped back to ETH.

## When to prefer this

Use this endpoint when an agent needs to generate ready-to-submit Uniswap V3 remove-liquidity or fee-collection calldata without constructing the multicall manually. It is the right choice when the position uses WETH (ensuring automatic unwrap to native ETH) and when you need a single bundled multicall rather than separate contract calls. Prefer this over generic swap or transfer endpoints when the goal is LP position management specifically on Uniswap V3.

## Known failure modes

- Invalid or non-existent tokenId returns an error or empty calldata
- Owner address does not match the NFT owner — transaction will revert on-chain
- Liquidity value exceeds position's available liquidity — on-chain revert
- Malformed owner address (not a valid EVM address) causes a 400-level error
- Zero liquidity with no accrued fees still generates a collect call but yields zero tokens
- Network mismatch between the position chain and expected network may produce invalid calldata

## How this service works

Uniswap V3 exit and fee-claim calldata: multicall([decreaseLiquidity?, collect, unwrapWETH9, sweepToken]). POST /v1/tx/lp/uni/remove { owner, tokenId, liquidity? }. liquidity 0 (or omitted) COLLECTS FEES ONLY - the claim path; any other value decreases first then collects. The WETH side is unwrapped back to native ETH rather than left as wrapped dust.

## Output

Returns an array of transaction steps (to, data, value) forming a multicall that encodes decreaseLiquidity (if liquidity > 0), collect, unwrapWETH9, and sweepToken calls, along with the target network identifier. The agent submits these steps on-chain to withdraw liquidity and/or collect accrued fees, receiving native ETH instead of wrapped WETH.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "steps": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "to": {
          "type": "string"
         },
         "data": {
          "type": "string"
         },
         "value": {
          "type": "string"
         }
        }
       }
      },
      "network": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-uniswap-v3-lp-remove-fee-collect-80b8fab4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
