func (ads *AddressLookupService) GetAddressDetail(address string) (detail addressdetail.AddressDetail, found bool) {
	// Check in Cache + JSON dataset
	if detail, found := ads.Cache[strings.ToLower(address)]; found {
		return detail, true
	}

	// Without connection, return Detail with just address
	detail = addressdetail.NewAddressDetail(address) // default
	if ads.Client == nil {
		return detail, false
	}

	// Look up in Blockchain and cache (no matter if found or not, to avoid unnecessary repeated calls)
	detail, found = smartcontracts.GetAddressDetailFromBlockchain(address, ads.Client)
	ads.AddAddressDetailToCache(detail)
	return detail, found
}
// GetAddressDetail returns the addressdetail.AddressDetail from JSON. If not exists then query the Blockchain and caches it for future use
GetAddressDetail returns the addressdetail.AddressDetail from JSON. If not exists then query the Blockchain and caches it for future use
// GetAddressDetail returns the addressdetail . AddressDetail from JSON . If not exists then query the Blockchain and caches it for future use
func (ads *AddressLookupService) GetAddressDetail(address string) (detail addressdetail.AddressDetail, found bool) {
	if detail, found := ads.Cache[strings.ToLower(address)]; found {
		return detail, true
	}
	detail = addressdetail.NewAddressDetail(address) 
	if ads.Client == nil {
		return detail, false
	}
	detail, found = smartcontracts.GetAddressDetailFromBlockchain(address, ads.Client)
	ads.AddAddressDetailToCache(detail)
	return detail, found
}
func ( ads * AddressLookupService ) GetAddressDetail ( address string ) ( detail addressdetail . AddressDetail , found bool ) { if detail , found := ads . Cache [ strings . ToLower ( address ) ] ; found { return detail , true } detail = addressdetail . NewAddressDetail ( address ) if ads . Client == nil { return detail , false } detail , found = smartcontracts . GetAddressDetailFromBlockchain ( address , ads . Client ) ads . AddAddressDetailToCache ( detail ) return detail , found }
GetAddressDetail returns the addressdetail.AddressDetail from JSON.
GetAddressDetail returns the addressdetail . AddressDetail from JSON .
// Check in Cache + JSON dataset // Without connection, return Detail with just address // default // Look up in Blockchain and cache (no matter if found or not, to avoid unnecessary repeated calls)