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.

Position Management → Set Collateral

AI-generated

Summary

Update collateral status for a position on Aave V4

Inputs

  • chainId — Chain identifier or name; can be specified via expression
  • pmCollateralChanges — Array of collateral modifications; each item defines a reserve and whether to enable it as collateral
  • pmSenderAddress (required) — Sender wallet address that will sign the transaction

Output shape

object

Returns a transaction receipt object containing the hash and status; may include additional logs but no body is guaranteed on failure

Examples

Example 1: Enable collateral for a specific reserve

Set chainId to 'eth-mainnet', add a change with reserveId '0x123...' and enableCollateral true, and provide pmSenderAddress '0xSender...'

Example 2: Disable collateral for a reserve

Set chainId to 'eth-mainnet', add a change with reserveId '0x456...' and enableCollateral false, and provide pmSenderAddress '0xSender...'

Links

Discussion