Operator Tips & Tricks
Insert key to Keystore:
This might be useful if you decided to switch domains or already have the secret phrase. Read more about switching domain in the next section.
To insert the key, use the following command:
subspace-node domain key insert \
--base-path NODE_DATA_PATH --domain-id DOMAIN_ID --keystore-suri "<Secret phrase>"
The command above will insert the keypair in the subfolder of NODE_DATA_PATH/domains/DOMAIN_ID/keystore
.
suri
is the secret phrase of the operator key.
Switch domains
Any Operator can switch domain they operate on anytime. In order to switch domain:
- Proceed to PolkadotJS
- Make sure to select the correct network at the top-left corner.
- Select the account you want to use in
using the selected account
. - Select
domains
undersubmit the following extrinsic
and chooseswitchDomain(operatorId, newDomainId)
in the dropdown. - Add your
operatorId
andnewDomainId
to the corresponding fields.
Only the account who registered Operator can switch the domain.
You need to move your keypair to a new location, if you switch domains. Follow the insert key to keystore section.
Stake of your Nominators won't be released, but will be moved to the new domain as well.
Useful commands
Running both validator (farmer) and operator nodes at the same time
To run both operator and validator at the same time, provide required flags for both roles when starting your node.
- 🖼️ Windows
- 🍎 macOS
- 🐧 Ubuntu