Skip to main content
POST
/
markets
/
lending_vaults
/
deposit
Vault deposit
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/lending_vaults/deposit \
  --header 'Content-Type: application/json' \
  --header 'user-wallet: <user-wallet>' \
  --data '{
  "principalAmount": 123,
  "minLpAmount": 123,
  "vault": "<string>"
}'
{
  "transaction": {
    "message": "<string>",
    "signatures": [
      {
        "publicKey": "<string>",
        "signature": "<string>"
      }
    ]
  },
  "stakeAccount": "<string>"
}

Headers

user-wallet
string
required

Wallet address of the depositing user

Body

application/json
principalAmount
number
required

Amount of Principal tokens to deposit (in lamports)

minLpAmount
number
required

Minimum number of LP tokens you are willing to accept in exchange for your principal deposit, in the event vault increases in value between quote and execution

vault
string
required

Lending vault address

Response

Serialized transaction and update stake account

transaction
object
stakeAccount
string

Address of the stake account holding LP tokens (if >0)

I