Inviting operators to join your service

After setting up your service, you can invite operators to join and confirm they will run your binary file and validate your service. To help them get started, send them this guide: Joining and leaving services.

By default, any operator that has your service ID will be able to join and take part to the rewards distribution. However, if you want to limit which operators are allowed to join you can do so by using a list of allowed operators.

If your service's allow list only contains an operator, and that operator gets deleted, your service will automatically be marked as INACTIVE. You will then be required to set up a new allow list or simply activate it again without any restriction on what operators can join.

Adding an operator to the allow list

To add an operator to your service's allow list, you will have to know its ID. Once you have that, you can run the following transaction:

milkywayd tx restaking service allow-operator [service-id] [operator-id] \
  --from <key-name>
  --chain-id <chain-id>
  --gas auto --gas-prices 0.1umilk --gas-adjusment 1.5
  --node <RPC URL of the node>

Where:

  • [service-id] is the unique ID of your service.

  • [operator-id] is the unique ID of the operator you want to add to the allow list.

  • <key-name> is the name of the key that you are using to sing the transaction. The same account will be set as the admin of the service.

  • <chain-id> is the ID of the MilkyWay chain where you are broadcasting the transaction. You can find the various chain ids here.

  • <RPC URL of the node> is the URL of the RPC node to be used to broadcast the transaction. You can find the various chain RPCs here.

Removing an operator from the allow list

If you want to remove an operator from the allow list of your service, you can do so by running the following command:

milkywayd tx restaking service remove-allowed-operator [service-id] [operator-id] \
  --from <key-name>
  --chain-id <chain-id>
  --gas auto --gas-prices 0.1umilk --gas-adjusment 1.5
  --node <RPC URL of the node>

Where:

  • [service-id] is the unique ID of your service.

  • [operator-id] is the unique ID of the operator you want to remove from the allow list.

  • <key-name> is the name of the key that you are using to sing the transaction. The same account will be set as the admin of the service.

  • <chain-id> is the ID of the MilkyWay chain where you are broadcasting the transaction. You can find the various chain ids here.

  • <RPC URL of the node> is the URL of the RPC node to be used to broadcast the transaction. You can find the various chain RPCs here.

Last updated