Skip to main content
POST
/
markets
/
lending_vaults
/
deposits
Get list of vault depositors
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/lending_vaults/deposits \
  --header 'Content-Type: application/json' \
  --data '
{
  "vaultAddresses": [
    "<string>"
  ],
  "principalMints": [
    "<string>"
  ]
}
'
[
  {
    "vaultAddress": "AXanCP4dJHtWd7zY4X7nwxN5t5Gysfy2uG3XTxSmXdaB",
    "userDeposits": [
      {
        "userAddress": "2fyUG8mSGgCkh9jDaSHToN4dPrp5x3Bb7boETVMRHR6h",
        "amountSupplied": 41214262
      }
    ]
  }
]

Body

application/json
vaultAddresses
string[]

List of vaults to query by, must include this or principalMints.

principalMints
string[]

List of principal tokens to query by, must include this or vaultAddresses.

Response

A list of vaults and an array of users and their balances in the vault

vaultAddress
string

The vault the deposits are mapped to

userDeposits
object[]

Deposits per user to corresponding vault