OperateRunning an OperatorJoin as an OperatorStake as Operator

Staking as an Operator

Operators can increase their self-stake to increase capacity, qualify for higher minimums, or signal commitment to customers.

Bond More

Increase Operator Stake

Operators can increase their self-stake via the CLI. The amount is in wei for the configured bond asset.

export HTTP_RPC_URL="https://..."
export WS_RPC_URL="wss://..."
export KEYSTORE_PATH="./keystore"
export TANGLE_CONTRACT="0x..."
export RESTAKING_CONTRACT="0x..."
export STATUS_REGISTRY_CONTRACT="0x..."
 
cargo tangle operator increase-stake \
  --http-rpc-url "$HTTP_RPC_URL" \
  --ws-rpc-url "$WS_RPC_URL" \
  --keystore-path "$KEYSTORE_PATH" \
  --tangle-contract "$TANGLE_CONTRACT" \
  --restaking-contract "$RESTAKING_CONTRACT" \
  --status-registry-contract "$STATUS_REGISTRY_CONTRACT" \
  --amount <AMOUNT_WEI>

The CLI flag name is --restaking-contract for compatibility; it refers to the staking contract.

If successful, the transaction emits OperatorStakeIncreased(operator, amount).

Schedule Operator Unstake

Step 1: Schedule Operator Unstake

Ensure you have joined as an operator first, see Join as an Operator.

cargo tangle operator schedule-unstake \
  --http-rpc-url "$HTTP_RPC_URL" \
  --ws-rpc-url "$WS_RPC_URL" \
  --keystore-path "$KEYSTORE_PATH" \
  --tangle-contract "$TANGLE_CONTRACT" \
  --restaking-contract "$RESTAKING_CONTRACT" \
  --status-registry-contract "$STATUS_REGISTRY_CONTRACT" \
  --amount <AMOUNT_WEI>

If successful, your tokens will be unlocked after the unstake delay period.

Execute Operator Unstake

Step 2: Execute Operator Unstake

Ensure you have scheduled an unstake and the delay period has passed.

cargo tangle operator execute-unstake \
  --http-rpc-url "$HTTP_RPC_URL" \
  --ws-rpc-url "$WS_RPC_URL" \
  --keystore-path "$KEYSTORE_PATH" \
  --tangle-contract "$TANGLE_CONTRACT" \
  --restaking-contract "$RESTAKING_CONTRACT" \
  --status-registry-contract "$STATUS_REGISTRY_CONTRACT"

If successful, all unstaked tokens will be unlocked and returned to the operator.