Skip to main content
POST
Refinance 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
newStrategy
string
required
oldStrategy
string
required
principalMint
string
required
refinanceParams
object
required

Params for refinancing a ledger to a new strategy/duration (refinance_ledger).

Response

Serialized transaction

expectedLoanInfo
object
required

Projected loan state after the transactions land.

transactions
object[]
required

Built, ready-to-sign versioned transactions.