The hemictl command is a generic tool to manipulate script commands to various daemons and their internal framework.
hemictl <command> <action> [parameters]command: Determines the daemon / module to be manipulated (e.g.,tbcdbis used to manipulated a TBC database)action: Specifies which command will be called (e.g.,ping)parameters: Key-value pair or JSON encoded parameters for theaction(e.g.,timestamp=1or{"timestamp":1})
HEMICTL_LOG_LEVEL: Sets the logging level (e.g.,INFO,DEBUG)HEMICTL_LEVELDB_HOME: The tbcdb leveldb home directory (default:~/.tbcd)HEMICTL_NETWORK: Bitcoin network (e.g.,mainnet,testnet3,testnet4)
For a detailed overview of the available modules, use:
hemictl -helpFor a detailed overview of a specific module's subcommands, use:
hemictl <command> -helpThe tool provides detailed error messages with:
- Timestamp of the error
- Trace ID for debugging
- Human-readable error message
- Always ensure proper formatting in parameters
- Use appropriate environment variables for production deployments
- Check logs when troubleshooting failed commands