Skip to main content
POST
/
markets
/
strategy
/
deposit
Deposit into strategy
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/strategy/deposit \
  --header 'Content-Type: application/json' \
  --header 'User-Wallet: <user-wallet>' \
  --data '
{
  "strategy": "<string>",
  "amount": 123
}
'
{
  "message": "<string>",
  "signatures": [
    {
      "publicKey": "<string>",
      "signature": "<string>"
    }
  ]
}

Headers

User-Wallet
string
required

Wallet address of the lender depositing into the strategy.

payer
string

Optional fee payer. Defaults to the User-Wallet address when omitted.

Body

application/json
strategy
string
required

Onchain address of the target strategy.

amount
number
required

Amount of principal to deposit, in native token units.

Response

Serialized transaction for the strategy deposit.

message
string
required

Base64-encoded versioned transaction message.

signatures
object[]
required