[tx] start adding acceleration preview

This commit is contained in:
nymkappa
2023-08-24 14:17:31 +02:00
parent 3aa938a94b
commit c89e283c8e
10 changed files with 112 additions and 16 deletions

View File

@@ -388,4 +388,8 @@ export class ApiService {
getServicesBackendInfo$(): Observable<IBackendInfo> {
return this.httpClient.get<IBackendInfo>(`${SERVICES_API_PREFIX}/version`);
}
estimate$(txInput: string) {
return this.httpClient.post<any>(`${SERVICES_API_PREFIX}/accelerator/estimate`, { txInput: txInput }, { observe: 'response' });
}
}