v1

latestOpenAPI 3.1.02026-07-2639148131.7 KB
creditbook

Withdraw collateral

Withdraws collateral from an existing loan. Full collateral removal may include internal weight-matrix and loan-lock handling before the transaction is returned.

post/markets/creditbook/collateral/withdraw

Headers

Idempotent-Keystring nullable

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

Request body

amountinteger required
assetIndexGuidanceinteger[]

Per-collateral oracle asset-index guidance (one byte per collateral slot).

collateralIndexinteger required
collateralMintstring required
loanstring required
lockLoanboolean
skipCloseboolean

Response

Serialized transaction for withdrawing collateral.

messagestring required

serialized message