Taiyi CLI guide
Register command
Taiyi-CLI register command to register as a Taiyi AVS Operator in the AVS Directory
Registration
Command Structure
Global Options
Option | Description | Environment Variable | Default |
---|---|---|---|
--execution-rpc-url | Ethereum RPC endpoint URL | EXECUTION_RPC_URL | - |
--private-key | Operator’s private key in hex format | PRIVATE_KEY | - |
--salt | Unique salt for registration | SALT | - |
--avs-directory-address | AVS Directory contract address | AVS_DIRECTORY_ADDRESS | - |
--taiyi-avs-address | Taiyi AVS contract address | TAIYI_AVS_ADDRESS | - |
Registration Example
Contract Addresses
For Holesky testnet:
- AVS Directory:
<AVS_DIRECTORY_ADDRESS>
- Taiyi AVS:
<TAIYI_AVS_ADDRESS>
Registration Process
-
The command calculates a registration digest hash using:
- Operator address (derived from private key)
- Taiyi AVS address
- Salt
- Expiry time (30 minutes from current time)
-
Signs the digest hash with the operator’s private key
-
Submits the registration transaction to the Taiyi AVS contract
-
Waits for transaction confirmation
Important Notes
-
Private Key Security:
- Never share your private key
- Preferably use environment variables instead of command line arguments
- Ensure secure key management practices
-
Salt Requirements:
- Must be unique for each registration
- Store the salt value for future reference
- Cannot reuse salt values
-
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
-
Salt Conflicts:
- Use a new unique salt value
- Verify salt hasn’t been used before
For additional support, check the operator documentation or join our tg support channel.