Add typeahead address prefix.

This commit is contained in:
softsimon
2020-07-24 22:37:35 +07:00
parent d2673281f9
commit 81d05e23b8
4 changed files with 30 additions and 2 deletions

View File

@@ -81,4 +81,7 @@ export class ElectrsApiService {
return this.httpClient.get<Transaction[]>(this.apiBaseUrl + '/asset/' + assetId + '/txs/chain/' + txid);
}
getAddressesByPrefix$(prefix: string): Observable<string[]> {
return this.httpClient.get<string[]>(this.apiBaseUrl + '/address-prefix/' + prefix);
}
}