mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 17:47:01 +01:00
parent
de035dc1b5
commit
0c979e9440
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue