Taiyi CLI User Guide
Register commands
Taiyi-CLI registration commands for validators and operator sets
Registration
Register Validators
Command Structure
Options
Option | Description | Environment Variable | Default |
---|---|---|---|
--execution-rpc-url | Ethereum RPC endpoint URL | EXECUTION_RPC_URL | - |
--private-key | Private key in hex format | PRIVATE_KEY | - |
--taiyi-middleware-address | Taiyi EigenLayer Middleware contract address | TAIYI_MIDDLEWARE_ADDRESS | - |
--bls-private-keys | Comma-separated list of BLS private keys | BLS_PRIVATE_KEY | - |
--operator-address | Operator address | OPERATOR_ADDRESS | - |
--collateral | Collateral amount for registration | COLLATERAL | - |
Example
Register For Operator Sets
Command Structure
Options
Option | Description | Environment Variable | Default |
---|---|---|---|
--execution-rpc-url | Ethereum RPC endpoint URL | EXECUTION_RPC_URL | - |
--private-key | Private key in hex format | PRIVATE_KEY | - |
--operator-bls-key | Operator BLS public key | OPERATOR_BLS_KEY | - |
--avs-address | AVS contract address | - | - |
--allocation-manager-address | Allocation Manager contract address | - | - |
--avs-directory-address | AVS Directory contract address | - | - |
--operator-set-ids | Comma-separated list of operator set IDs | - | - |
--socket | Operator socket address | - | - |
--salt | Unique salt value for registration | SALT | - |
Example
Registration Process
-
For Validator Registration:
- Signs validator messages with provided BLS private keys
- Registers validators with the Taiyi Middleware contract
- Includes collateral payment as specified
-
For Operator Set Registration:
- Creates operator signature for BLS public key verification
- Generates a registration digest hash and signs it
- Registers the operator for the specified operator sets
Important Notes
-
Private Key Security:
- Never share your private keys
- Preferably use environment variables for sensitive data
- Ensure secure key management practices
-
Transaction Costs:
- Registration requires gas fees
- Ensure sufficient ETH balance in operator account
Troubleshooting
Common issues and solutions:
-
Transaction Failure:
- Verify contract addresses are correct
- Ensure sufficient ETH for gas
- Check if operator is already registered
-
Invalid Private Key:
- Ensure private key is in correct hex format
- Verify key has necessary permissions
-
RPC Connection Issues:
- Verify RPC URL is accessible
- Try alternative RPC endpoints
For additional support, check the operator documentation or join our tg support channel.