Skip to main content
POST
Flash borrow

Headers

Idempotent-Key
string | null

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

Body

application/json
depositCollateral
object[]
required

Collateral to deposit alongside the borrow.

principalRequested
object[]
required

Per-ledger principal borrow requests.

cpiIxs
object[]

Caller-supplied CPI instructions spliced into the built transaction.

cpiLuts
string[]
cpiSigners
string[]
isLoop
boolean | null
loanAddress
string | null
nonce
string | null
refinanceParams
null | object

Optional on-chain refinance params.

setupIxs
object[]

Setup instructions run before the main instructions.

setupLuts
string[]
setupSigners
string[]
unifySetup
boolean

Response

Serialized transaction and resulting loan address

expectedLoanInfo
object
required

Projected loan state after the transactions land.

transactions
object[]
required

Built, ready-to-sign versioned transactions.