Skip to main content
POST
Seller Financing is in beta and runs on Ethereum Sepolia instances only for now (DEVELOPMENT instances on Ethereum). A PRODUCTION instance, or one on another network, answers 503 SELLER_FINANCING_UNAVAILABLE. See Seller Financing.
Builds the seller’s withdrawal from the sale of a loan in default. The seller or the market’s operator signs it. Once mined, the listing reads LIQUIDATED, the asset is released back to the seller, and the escrow is split:
  • The seller is credited the compensation, 1.5 percent of the downpayment rounded up, plus the interest still owed, capped at the escrow, less Trusset’s 20 percent of that sum.
  • Trusset is credited that 20 percent.
  • The buyer is credited the rest of the escrow as a refund.
The escrow is the downpayment plus the principal paid so far. Interest the buyer paid before the default stays with the seller. Nothing is paid out by the liquidation itself: the seller and the buyer each withdraw with Withdraw. In freeze mode the adapter unfreezes the amount in the seller’s wallet. In custody mode it returns the asset to the seller, or keeps it in escrow for the seller when the token refuses the return. Before building, the API simulates that return from the adapter: when the token refuses it, the answer carries assetReturn with willEscrow: true and the same text in warning, and the seller later takes the asset back with Claim Escrowed Collateral. See What each party receives for a worked example. A loan is in default one second after the grace period of a due date whose interest is unpaid, or one second after maturity plus the grace period while principal is outstanding. Before that, the API answers 409 TX_WOULD_REVERT with NotLiquidatable and the moment the loan becomes liquidatable. A liquidation is refused while the market is paused.
The asset is released before any money settles. While the freeze adapter lacks its agent role on the token, or the custody adapter holds less than it recorded, the liquidation reverts and the escrow waits until the token issuer restores the role or the holdings.

Path Parameters

string
required
The market’s record ID, as id on List Markets.
string
required
The listing’s ID on the market.

Body Parameters

string
required
The wallet that signs: the seller or a holder of OPERATOR_ROLE. Without it the answer is 400 FROM_REQUIRED. Any other wallet answers 409 TX_WOULD_REVERT with NotSeller, and the message names the seller and the current operators, also in details.seller and details.roleHolders.

Response Fields

object
Liquidated at this moment, the loan’s 2,000 USDC escrow splits into 136.111324 USDC for the seller, 34.02783 USDC for Trusset and 1,829.860846 USDC for the buyer.

Error Codes