Skip to main content
POST
Builds the setOperatorFeeRecipient transaction, which moves the market’s operator wallet to a new address. The operator wallet collects the operator share of repaid interest and is the one wallet, besides registered vaults, that may deposit liquidity directly. Both rights move together. Only the current operator wallet can sign it. The market admin cannot move the operator wallet, and neither can any other party.
Once the rotation mines, only the new wallet can move the operator wallet again. The previous wallet loses that right, and no other party holds it. For that reason the API accepts only a new wallet this instance has registered and verified, which proves it controls the key.

What moves and what stays

The rotation changes one address on the market. It does not touch the lender-of-record roles, and it does not move liquidity the previous wallet already supplied.

Path Parameters

string
required
Market ID.

Body Parameters

string
The wallet that becomes the operator wallet, as a 0x-prefixed 20-byte address. Required when building calldata. It must be a verified wallet of this instance and must differ from the current operator wallet.
string
The wallet you intend to sign with. When supplied, the API refuses with NOT_OPERATOR_WALLET unless it is the current operator wallet, before any transaction is offered. Omit it to skip that check.
string
Hash of the rotation you broadcast. Send it to confirm the transaction and record the result. Omit it to receive the calldata.

Response Fields

object
Every refusal below is checked before a transaction is offered. Get Fee Split shows the current operator wallet as operatorWallet.

Error Codes

Confirming with txHash can also return any transaction verification error.