Leave as an Operator
Operators can leave the operator role by scheduling a leave and then completing it after the leave delay period has passed.
Schedule Operator Leave
Step 1: Schedule Operator Leave
Ensure you have joined as an operator first, see Join as an Operator.
export RPC_URL="https://..."
export PRIVATE_KEY="0x..."
export RESTAKING_CONTRACT="0x..." # MultiAssetDelegation contract
cast send "$RESTAKING_CONTRACT" "startLeaving()" \
--rpc-url "$RPC_URL" \
--private-key "$PRIVATE_KEY"If successful, your leave will be scheduled.
Execute Operator Leave
Step 2: Execute Operator Leave
Ensure you have scheduled a leave and the leave delay period has passed.
cast send "$RESTAKING_CONTRACT" "completeLeaving()" \
--rpc-url "$RPC_URL" \
--private-key "$PRIVATE_KEY"If successful, you will no longer be an operator.