Skip to main content
POST
Repay loan

Headers

Idempotent-Key
string | null

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

Body

application/json
loan
string
required
repayParams
object[]
required
closeIfPossible
boolean
collateralWithdrawalParams
object[]
cpiIxs
object[]

Caller-supplied CPI instructions spliced into the built transaction.

cpiLuts
string[]
cpiSigners
string[]
setupIxs
object[]

Setup instructions run before the main instructions.

setupLuts
string[]
setupSigners
string[]
stakeInstructions
null | object

Optional vault LP stake leg to compose with this txn as a suffix. Used to stake collateral released by repayments.

unifySetup
boolean
weightMatrixUpdates
object[]

Response

Serialized transaction message and signatures

expectedLoanInfo
object
required

Projected loan state after the transactions land.

transactions
object[]
required

Built, ready-to-sign versioned transactions.