Actions61
- Activity Actions
- Asset Actions
- Custom Query Actions
- Hub Actions
- Lending Actions
- Market Data Actions
- Position Management Actions
- Position Swap Actions
- Protocol Actions
- Reserve Actions
- Spoke Actions
- Swap Actions
- User Position Actions
Lending → Prepare Repay
AI-generatedSummary
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}