kunickyd %!s(int64=3) %!d(string=hai) anos
pai
achega
1f2802df5b
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      src/app/bc-info/bc-info.service.ts

+ 9 - 0
src/app/bc-info/bc-info.service.ts

@@ -96,4 +96,13 @@ export class BcInfoService {
 
     return response["dataUrl"];
   }
+
+  async getTransfers(user: string): Promise<Array<Object>>{
+    let response = await this.httpClient.get(
+      this._bcConfig.CHAIN4ALL_SERVICE_URL + "/transfers/" + user,
+      { headers: this.basicAuthHeaders }
+    ).toPromise();
+
+    return response as Array<Object>;
+  }
 }