帖子

分享您的知识。

帖子

分享您的知识。

Aaveator.
Jan 29, 2023
专家问答

What would be the best way to get all the addresses with a position on a particular reserve?

What would be the best way to get all the addresses with a position on a particular reserve? Is there a query I can perform on the subgraph to retrieve so?

  • Aave Protocol
0
1
分享
评论
.

答案

1
Aaveator.
Feb 2 2023, 16:18

You can use this subgraph query:

{
userReserves(where: {reserve: "lowercase_asset_address"}){
  user{
    id
  }
  reserve {
    liquidityIndex
    variableBorrowIndex
  }
  scaledATokenBalance
  scaledVariableDebt
    principalStableDebt
  stableBorrowRate
}
}

More info.

0
评论
.

你知道答案吗?

请登录并分享。

我们使用 cookie 确保您在我们的网站上获得最佳体验。
更多信息