Aave V4 icon

Aave V4

Query Aave V4 DeFi protocol. Use this to: check supported chains, list hubs/spokes/reserves, get user positions/balances/supplies/borrows by wallet address, view transaction history, get exchange rates and APY history. Supports custom GraphQL queries for advanced use cases.

Lending → Prepare Withdraw

AI-generated

Summary

Prepare a withdraw from a specific Aave V4 lending reserve.

Inputs

  • chainId — Chain name or ID; can be specified via expression.
  • lendingReserveId (required) — The reserve to withdraw from; choose from list or specify an ID via expression.
  • lendingAmount (required) — Amount in the asset's main unit (e.g., 1.5 for 1.5 ETH).
  • lendingSenderAddress (required) — Sender wallet address for the transaction.
  • lendingUseMax — If true, withdraw the maximum available amount; only applicable for withdraw operations.

Output shape

a transaction object that must be signed and sent off‑chain

Successful execution resolves to a transaction hash; errors reject with an error object.

Examples

Example 1: Withdraw 2.3 ETH from the user's 123 reserve on Ethereum mainnet

Chain Name or ID: "Ethereum Mainnet"; Reserve Name or ID: "0xABC...123"; Amount: "2.3"; Sender Address: "0xUserAddr..."; Use Max Amount: false

Links

Discussion