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

Headers

User-Wallet
string
required

Wallet address of the lender withdrawing from 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 withdraw, in native token units.

withdrawAll
boolean
required

Set to true to withdraw the entire strategy balance.

Response

Serialized transaction for the strategy withdrawal.

message
string
required

Base64-encoded versioned transaction message.

signatures
object[]
required