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 Swap → Get Supply Swap Quote

AI-generated

Summary

Fetch a supply position swap quote from Aave V4

Inputs

  • chainId (required) — Chain identifier or name to use for the query
  • supplySwapSellPosition (required) — ID of the supply position to sell (UserSupplyItemId)
  • supplySwapBuyReserve (required) — Reserve identifier to buy into
  • supplySwapAmount (required) — Amount of tokens to swap (in token units)
  • supplySwapUserAddress (required) — User address performing the swap

Output shape

a single quote object

The returned payload contains the swap quote details; exact fields are not detailed in the source but typically include quoteId, price, and other swap parameters.

Examples

Example 1: Swap 1.5 tokens from a supply position on Ethereum mainnet

chainId: "mainnet", supplySwapSellPosition: "supply_item_123", supplySwapBuyReserve: "reserve_456", supplySwapAmount: "1.5", supplySwapUserAddress: "0xAbc…"

Example 2: Query a swap in Optimism testnet using a custom chain ID

chainId: 10, supplySwapSellPosition: "supply_item_789", supplySwapBuyReserve: "reserve_101", supplySwapAmount: "0.75", supplySwapUserAddress: "0xDef…"

Example 3: Check quote before executing a supply swap on Polygon

chainId: "polygon", supplySwapSellPosition: "supply_item_555", supplySwapBuyReserve: "reserve_222", supplySwapAmount: "2.0", supplySwapUserAddress: "0x123…"

Links

Discussion