v1

latestOpenAPI 3.1.02026-07-2639148131.7 KB
creditbook

Create loan

Creates a new loan with initial collateral and requested principal borrows, returning both the loan address and the serialized transaction needed to initialize it.

post/markets/creditbook/create

Headers

Idempotent-Keystring nullable

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

Request body

assetIndexGuidanceinteger[]

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

borrowerstring required
isLoopboolean nullable
loanNoncestring nullable

Response

Serialized transaction and derived loan address.

loanAddressstring required