Address page with QR code

This commit is contained in:
Simon Lindh
2019-11-13 14:51:44 +08:00
parent 309e851ead
commit 480016ef07
18 changed files with 8241 additions and 93 deletions

View File

@@ -170,11 +170,23 @@ export class ApiService {
return this.httpClient.get<any[]>(API_BASE_URL + '/explorer/tx/' + txId);
}
getBlock$(hash: string): Observable<any[]> {
return this.httpClient.get<any[]>(API_BASE_URL + '/explorer/block/' + hash);
getBlock$(hash: string): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/explorer/block/' + hash);
}
getBlockTransactions$(hash: string, index?: number): Observable<any[]> {
return this.httpClient.get<any[]>(API_BASE_URL + '/explorer/block/' + hash + '/tx/' + (index || ''));
}
getAddress$(address: string): Observable<any> {
return this.httpClient.get<any>(API_BASE_URL + '/explorer/address/' + address);
}
getAddressTransactions$(address: string): Observable<any[]> {
return this.httpClient.get<any[]>(API_BASE_URL + '/explorer/address/' + address+ '/tx/');
}
getAddressTransactionsFromHash$(address: string, txid: string): Observable<any[]> {
return this.httpClient.get<any[]>(API_BASE_URL + '/explorer/address/' + address + '/tx/chain/' + txid);
}
}