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.

User Position → Get Risk Premium Breakdown

AI-generated

Summary

Fetch the risk premium breakdown for a user's Aave V4 position

Inputs

  • chainId — Chain name or ID; choose from the list or specify an ID using an expression
  • userAddress (required) — The Ethereum address of the user
  • positionId — The ID of the user position (optional if spoke ID provided)
  • spokeIdForPosition — The spoke for the position (optional if position ID provided); choose from the list or specify an ID using an expression

Output shape

an object containing the risk premium breakdown for the specified position

The response shape depends on the underlying Aave API; it typically includes risk premium metrics and related details, but the exact field list may vary

Examples

Example 1: Retrieve risk premium breakdown using a position ID on Ethereum mainnet

{"chainId":"1","userAddress":"0xAbc123...","positionId":"position_789","spokeIdForPosition":""}

Example 2: Retrieve risk premium breakdown using a spoke ID instead of a position ID

{"chainId":"1","userAddress":"0xAbc123...","positionId":"","spokeIdForPosition":"spoke_456"}

Example 3: Fetch risk premium breakdown for a custom chain using default options

{"chainId":"56","userAddress":"0xDef456...","positionId":"","spokeIdForPosition":""}

Links

Discussion