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
Position Swap → Get Supply Swap Quote
AI-generatedSummary
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…"