Skip to main content
POST
/
markets
/
creditbook
/
collateral
/
deposit
Deposit collateral
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/creditbook/collateral/deposit \
  --header 'Content-Type: application/json' \
  --header 'user-wallet: <user-wallet>' \
  --data '
{
  "loan": "<string>",
  "depositMint": "<string>",
  "amount": 123,
  "assetType": 123,
  "assetIdentifier": "<string>",
  "assetIndexGuidance": [
    123
  ],
  "expectedLoanValues": {
    "expectedApy": 123,
    "expectedLqt": [
      123
    ]
  }
}
'
{
  "message": "<string>",
  "signatures": [
    {
      "publicKey": "<string>",
      "signature": "<string>"
    }
  ]
}

Headers

user-wallet
string
required

Wallet address of the borrower adding collateral.

payer
string

Optional fee payer. Defaults to user-wallet when omitted.

Body

application/json
loan
string
required
depositMint
string
required
amount
number
required
assetType
integer
required

Loopscale collateral asset type enum value.

assetIdentifier
string
required

Collateral asset identifier used by market information.

assetIndexGuidance
integer[]

Optional oracle asset ordering hints used by Loopscale when validating a transaction.

expectedLoanValues
object

Response

Serialized transaction for depositing collateral.

message
string
required

Base64-encoded versioned transaction message

signatures
object[]
required