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 Repay

AI-generated

Summary

Prepare a repayment transaction for a specific Aave V4 lending reserve.

Inputs

  • chainId — Ethereum chain identifier (numeric or name) to use for the transaction.
  • lendingReserveId (required) — Identifier of the lending reserve to repay, chosen from the list of available reserves.
  • lendingAmount (required) — Repayment amount expressed in the asset's main unit (e.g., '1.5' for 1.5 ETH).
  • lendingSenderAddress (required) — The wallet address that will send the transaction.
  • lendingUseMax — If true, repay the maximum available amount instead of a fixed amount.
  • lendingUsePermit — If true, use EIP‑2612 permit for gasless token approval.

Output shape

transaction payload (object) to be signed and sent

The payload contains all data needed to execute the repayment; no additional response body is returned on success.

Examples

Example 1: Repay 2 ETH debt on mainnet using USDC from wallet 0xABc...

{"chainId": "1", "lendingReserveId": "0xReserveId", "lendingAmount": "2", "lendingSenderAddress": "0xABc...", "lendingUseMax": false, "lendingUsePermit": false}

Example 2: Withdraw the maximum USDC repayment on Goerli without permit

{"chainId": "5", "lendingReserveId": "0xReserveId", "lendingAmount": "USE_MAX", "lendingSenderAddress": "0xSender", "lendingUseMax": true, "lendingUsePermit": false}

Links

Discussion