WordPress at a glance
function is not described

get_blogaddress_by_name() WP 3.0.0

Get a full blog URL, given a blog name.

No Hooks.

Return

String.

Usage

get_blogaddress_by_name( $blogname );
$blogname(string) (required)
The (subdomain or directory) name

Code of get blogaddress by name: wp-includes/ms-blogs.php WP 5.2.2

<?php
function get_blogaddress_by_name( $blogname ) {
	if ( is_subdomain_install() ) {
		if ( 'main' === $blogname ) {
			$blogname = 'www';
		}
		$url = rtrim( network_home_url(), '/' );
		if ( ! empty( $blogname ) ) {
			$url = preg_replace( '|^([^\.]+://)|', '${1}' . $blogname . '.', $url );
		}
	} else {
		$url = network_home_url( $blogname );
	}
	return esc_url( $url . '/' );
}