Skip to main content
POST
Builds pause or unpause on the market and confirms either once mined. paused picks which. The endpoint never submits the transaction.
A pause stops new business on the market: no loan opens, no additional borrow, no deposit and no auction bid. Repayment, collateral release and liquidity withdrawals stay open, so a pause never traps a borrower or a liquidity provider. Only the market admin unpauses; a guardian can pause but cannot undo it.
A wallet holding GUARDIAN_ROLE may pause, as may the market admin (DEFAULT_ADMIN_ROLE). The guardian is named with Set Access Role as MARKET_GUARDIAN. A guardian that monitors the market from your servers uses this endpoint and Halt Prices, its two brakes.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.

Body Parameters

boolean
required
true to pause, false to unpause. Required on the confirm call too, where it selects the function the receipt must carry.
string
The wallet that will sign. When sent, the market is asked whether it holds the role the action needs: a pause is refused with NOT_GUARDIAN when the wallet holds neither DEFAULT_ADMIN_ROLE nor GUARDIAN_ROLE, and an unpause with NOT_ADMIN when it does not hold DEFAULT_ADMIN_ROLE, a guardian included. Omit it and the response names the admin wallet of your instance; a wallet without the role has its transaction reverted on chain.
string
Hash of the mined transaction. Send it with the same paused to confirm. Omit it to receive the calldata.

Calldata Response

object

Confirmed Response

The confirm call verifies that the transaction targeted the market and called the function paused names, reads the pause flag back from the chain, records the change in the market ledger and writes the audit log entry LENDING_MARKET_PAUSED or LENDING_MARKET_UNPAUSED.
object

Error Codes