Add Test Transactions page

This commit is contained in:
Mononaut authored and softsimon committed 2024-04-21 10:05:58 +07:00
1 parent c7cb7d1ac4
commit f3232b2d5c
6 files changed
+167 -2

No files matched your search

+2 -2
View File
@@ -238,8 +238,8 @@ export class ApiService {
return this.httpClient.post<any>(this.apiBaseUrl + this.apiBasePath + '/api/tx', hexPayload, { responseType: 'text' as 'json'});
}
testTransactions$(hexPayload: string): Observable<TestMempoolAcceptResult[]> {
return this.httpClient.post<TestMempoolAcceptResult[]>(this.apiBaseUrl + this.apiBasePath + '/api/txs/test', hexPayload, { responseType: 'text' as 'json'});
testTransactions$(hexPayload: string, maxfeerate?: number): Observable<TestMempoolAcceptResult[]> {
return this.httpClient.post<TestMempoolAcceptResult[]>(this.apiBaseUrl + this.apiBasePath + `/api/txs/test${maxfeerate != null ? '?maxfeerate=' + maxfeerate.toFixed(8) : ''}`, hexPayload);
}
getTransactionStatus$(txid: string): Observable<any> {