{"uid":"cap_MaGcq2JdRsU960JNiY7ud","slug":"ozmium-aave-v3-base-withdraw-calldata-213d6f55","name":"Ozmium Aave v3 (Base) Withdraw Calldata","description":"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.","url":"https://ozmium.org/v1/tx/earn/aave/withdraw","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asset":{"type":"string"},"owner":{"type":"string"},"amount":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__fnW2R2QrwosHLOPFMlvl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates calldata to withdraw assets from Aave v3 on Base mainnet, supporting both exact-amount and full-balance ('max') withdrawals.","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:57.603Z","isFirstParty":false}