# Ozmium Aave v3 (Base) Withdraw Calldata

> Ozmium Aave v3 (Base) Withdraw 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 withdraw assets from Aave v3 on Base mainnet, supporting both exact-amount and full-balance ('max') withdrawals.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/earn/aave/withdraw
- 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-aave-v3-base-withdraw-calldata-213d6f55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MaGcq2JdRsU960JNiY7ud

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-aave-v3-base-withdraw-calldata-213d6f55 -d '<json body>'
```

Example prompt: Withdraw all my USDC from Aave v3 on Base — use 'max' to pull the entire aToken balance for my wallet 0xAbc...123 and give me the transaction calldata.

## When to prefer this

Use this endpoint when you need to programmatically withdraw assets from an Aave v3 lending position on Base mainnet — especially when you want to exit a full position using 'max' without manually querying aToken balances. Prefer this over manual ABI encoding when building agent-driven DeFi workflows on Base.

## Known failure modes

- Invalid or unsupported asset address returns an error or empty steps
- Owner address not holding any aTokens may return a zero-value transaction or error
- Malformed amount string (not atomic integer or 'max') causes validation failure
- Network/RPC error on Base mainnet may result in a 500 or timeout
- Insufficient aToken balance when using exact amount may cause on-chain revert at execution

## How this service works

Aave v3 (Base) withdraw calldata (amount "max" pulls the entire aToken balance). POST /v1/tx/earn/aave/withdraw { asset, amount (atomic | "max"), owner }. Returns { to, data, value } steps.

## Output

Returns an array of transaction steps, each with 'to' (contract address to call), 'data' (ABI-encoded calldata), and 'value' (ETH value to send). These steps can be submitted directly to a Base mainnet wallet to execute the Aave v3 withdrawal.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asset": {
   "type": "string"
  },
  "owner": {
   "type": "string"
  },
  "amount": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-aave-v3-base-withdraw-calldata-213d6f55/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)
