Aave.

Beitrag

Teile dein Wissen.

Aaveator.
Jan 29, 2023
Experten Q&A

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
Teilen
Kommentare
.

Antworten

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
Kommentare
.

Weißt du die Antwort?

Bitte melde dich an und teile sie.

Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.

213Beiträge230Antworten
Sui.X.Peera.

Verdiene deinen Anteil an 1000 Sui

Sammle Reputationspunkte und erhalte Belohnungen für deine Hilfe beim Wachstum der Sui-Community.

Wir verwenden Cookies, um sicherzustellen, dass Sie die beste Erfahrung auf unserer Website haben.
Mehr Infos