API Reference
Integrate the Loopscale protocol
cURL
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>" } ] }
Withdraws principal from an existing lending strategy, optionally closing out the full position.
Wallet address of the lender withdrawing from the strategy.
Optional fee payer. Defaults to the User-Wallet address when omitted.
User-Wallet
Onchain address of the target strategy.
Amount of principal to withdraw, in native token units.
Set to true to withdraw the entire strategy balance.
true
Serialized transaction for the strategy withdrawal.
Base64-encoded versioned transaction message.
Show child attributes