Skip to main content
POST
Refinance loan

Headers

User-Wallet
string | null

Base58 wallet used as the fee payer when payer is omitted

payer
string | null

Base58 wallet that pays transaction fees; defaults to the User-Wallet wallet when omitted

Transaction-Settings
string | null

Optional JSON-encoded transaction settings (priority-fee percentile, compute limits, simulation mode)

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.