# Ozmium Aerodrome Remove Liquidity Calldata

> Ozmium Aerodrome Remove Liquidity Calldata 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 calldata to remove liquidity from an Aerodrome vAMM OZ/USDC pool, optionally prepending an LP-token approve step.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/lp/aero/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-aerodrome-remove-liquidity-calldata-60d82dad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2ESM8rPUNxtboxysz23s8

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-aerodrome-remove-liquidity-calldata-60d82dad -d '<json body>'
```

Example prompt: Build me the calldata to remove 5000000 atomic LP units of my Aerodrome OZ/USDC position — my wallet is 0xAbc...123, include the LP token approve step for pool 0xDef...456, and use 1% slippage.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically exit an Aerodrome vAMM OZ/USDC LP position on Base and requires ready-to-sign calldata rather than constructing the ABI encoding manually. It is ideal when you also need the LP-token approve prepended in a single atomic calldata bundle. Prefer this over generic DEX exit tools when the position is specifically in Aerodrome's vAMM and the OZ/USDC pair.

## Known failure modes

- Insufficient liquidity amount — LP amount exceeds balance held by owner
- Missing required owner field — returns 400 validation error
- Slippage too tight — minOz or minUsdc values conflict with pool reserves, causing revert on-chain
- Invalid pool address — unrecognized or non-Aerodrome pool returns error
- Payment failure — x402 USDC payment not attached or insufficient, returns 402

## How this service works

Aerodrome removeLiquidity calldata. POST /v1/tx/lp/aero/remove { owner, liquidity, pool?, minOz?, minUsdc?, slippagePct? }. Pass `pool` to have the LP-token approve step prepended; liquidity is the atomic LP amount to burn.

## Output

An ordered array of transaction steps, each containing a `to` address, `data` hex string (calldata), and `value` (ETH), plus a `network` identifier — ready to sign and broadcast to Base. If `pool` is supplied, the first step is the LP-token ERC-20 approve, followed by the removeLiquidity call.

## 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-aerodrome-remove-liquidity-calldata-60d82dad/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)
