Skip to main content
POST
Create loan

Headers

Idempotent-Key
string | null

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

Body

application/json
borrower
string
required
depositCollateral
object[]
required
principalRequested
object[]
required
assetIndexGuidance
integer<int32>[]

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

Required range: x >= 0
isLoop
boolean | null
loanNonce
string | null
unstakeInstructions
null | object

Optional vault LP unstake leg to compose with this txn as a prefix.

Response

Serialized transaction and derived loan address.

loanAddress
string
required
transaction
object
required

versioned txn return