v1

latestOpenAPI 3.1.02026-07-2639148131.7 KB
creditbook

Flash borrow

Atomically creates a new loan and executes optional CPIs before depositing collateral. Supports deferred collateralization. Returns a transaction message and resulting loan address.

post/markets/creditbook/flash_borrow

Headers

Idempotent-Keystring nullable

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

Request body

cpiLutsstring[]
cpiSignersstring[]
isLoopboolean nullable
loanAddressstring nullable
noncestring nullable
setupLutsstring[]
setupSignersstring[]
unifySetupboolean

Response

Serialized transaction and resulting loan address