Skip to main content
POST
Builds the sweepInfrastructureFees transaction, which pays everything the market has booked as Trusset’s infrastructure fee to the Trusset wallet. That wallet is a constant in the market contract, 0x65FF3a731366472d40CF458332457403168c2BEA, and the market has no setter for it. Any wallet may sign, and nothing reaches the signer. The sweep only moves money that is already booked to Trusset. Until it runs, that money sits on the market as a liability that is never lent out and that no liquidity provider can withdraw. The booked balance has two sources. Trusset takes 15 percent of repaid interest and of interest recovered through liquidation, and 87 percent of every fixed transaction fee. Get Cashflows itemises both.

Path Parameters

string
required
Market ID.

Body Parameters

string
Hash of the sweep you broadcast. Send it to confirm the transaction and record the result. Omit it to receive the calldata.

Response Fields

object
The sweep pays whatever is booked when it mines, which can exceed the amount quoted when the calldata was built. A confirmed sweep is recorded on the market as an INFRASTRUCTURE_FEES_SWEPT transaction, visible through List Transactions.

Error Codes

Confirming with txHash can also return any transaction verification error.