parent
de035dc1b5
commit
0c979e9440
@ -85,6 +85,9 @@ export class ElectrsApiService {
|
||||
}
|
||||
|
||||
getAddressesByPrefix$(prefix: string): Observable<string[]> {
|
||||
return this.httpClient.get<string[]>(this.apiBaseUrl + this.apiBasePath + '/api/address-prefix/' + prefix.toLowerCase());
|
||||
if (prefix.toLowerCase().indexOf('bc1') === 0) {
|
||||
prefix = prefix.toLowerCase();
|
||||
}
|
||||
return this.httpClient.get<string[]>(this.apiBaseUrl + this.apiBasePath + '/api/address-prefix/' + prefix);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user