Skip to main content
POST
Revoke All Loan Approvals
Builds the revokeAll transaction on the market’s approvals contract, and confirms it on a second call with txHash. Trusset never signs: the market admin signs the calldata. The transaction raises the approvals contract’s epoch. Every approval signed before it is void on chain from that block on. Approvals signed afterwards count as usual. Use it in two cases:
  • An approver wallet is lost, replaced or removed. An approval does not name the wallet that signed it, so removing an approver from the market does not withdraw what it approved. Revoke all, then approve again what should stand.
  • Before switching approvals back on after they were off. Approvals survive a switch off and on. Revoke all first when the earlier approvals should not return with the switch.
The route also works while approvals are switched off, as long as the market’s approvals contract exists. Once confirmed, every APPROVED request of the market whose approval was signed before the transaction is recorded as REVOKED. Requests that still wait (REQUESTED) are untouched and can be approved afterwards. To take back one approval, use Revoke Loan Approval.

Who can call

The market admin only: a verified wallet of your instance has to hold DEFAULT_ADMIN_ROLE on the market. LOAN_APPROVER_ROLE is not enough.

Path Parameters

string
required
The market’s record ID on your instance.

Body Parameters

string
The wallet that will sign. It has to be a verified wallet of your instance that holds DEFAULT_ADMIN_ROLE on the market. Defaults to the first such wallet.
string
Hash of the transaction you broadcast. Send it to confirm the transaction and record the result. Omit it to receive the calldata.

Response Fields

object

Error Codes