v1

latestOpenAPI 3.1.02026-07-2639148131.7 KB
lending_vaults

Vault withdraw

Withdraw funds from a target lending Vault. If any deposits remain, the previous stake account and reward schedule is deleted and a new one is created.

post/markets/lending_vaults/withdraw

Headers

Idempotent-Keystring nullable

Optional idempotency key; a retried write with the same key replays the original response

Request body

amountPrincipalinteger required
maxAmountLpinteger required
vaultstring required
withdrawAllboolean required
withdrawOnlyboolean

Response

Serialized transaction and update stake account

stakeAccountstring required