pub fn get_endpoint(endpoint: &Option<String>) -> Result<String>
Returns the endpoint to interact with the network. If the --endpoint options is not provided, it will default to the environment variable.
--endpoint