// HasEnvironmentVars returns true if the necessary configuration environment variables are set.
// These environment variables store configuration for the AlgorandClient.
// Key and URL MUST exist. Either token or headers need to be set. Returns false if both are missing.
HasEnvironmentVars returns true if the necessary configuration environment variables are set.
These environment variables store configuration for the AlgorandClient.
Key and URL MUST exist. Either token or headers need to be set. Returns false if both are missing.
// HasEnvironmentVars returns true if the necessary configuration environment variables are set . // These environment variables store configuration for the AlgorandClient . // Key and URL MUST exist . Either token or headers need to be set . Returns false if both are missing .
func HasEnvironmentVars() bool {
	_, existsURL := os.LookupEnv(EnvURLNode)
	_, existsToken := os.LookupEnv(EnvAlgodToken)
	_, existsHeaders := os.LookupEnv(EnvHeadersNode)
	_, existsKey := os.LookupEnv(EnvPrivateKey)
	return existsURL && existsKey && (existsToken || existsHeaders)
}
func HasEnvironmentVars ( ) bool { _ , existsURL := os . LookupEnv ( EnvURLNode ) _ , existsToken := os . LookupEnv ( EnvAlgodToken ) _ , existsHeaders := os . LookupEnv ( EnvHeadersNode ) _ , existsKey := os . LookupEnv ( EnvPrivateKey ) return existsURL && existsKey && ( existsToken || existsHeaders ) }
HasEnvironmentVars returns true if the necessary configuration environment variables are set.
HasEnvironmentVars returns true if the necessary configuration environment variables are set .