Skip to main content
POST
Grants or revokes LIQUIDATOR_ROLE for any address on the market contract. Holding this role is a prerequisite for Liquidate Loan and Settle Expired Auction. The role change has to be executed from the wallet holding DEFAULT_ADMIN_ROLE on the market. The endpoint returns requiresUserAction with the calldata for that wallet to sign.
When the address already holds the role you asked for, the response returns unchanged: true and no calldata. Nothing needs to be signed.

Path Parameters

string
required
Market ID.

Body Parameters

string
required
Address to grant or revoke. Must be a 0x-prefixed 40-character hex address.
string
required
grant or revoke.
string
Hash of the transaction you broadcast for this operation. Send it to confirm the transaction and record the result. Omit it to receive the calldata.

Response Fields

object
Revoking the role from every address you control leaves the market with no liquidator. Loans will still become liquidatable, but nothing will act on them until the role is restored or another liquidator is authorized.