Add suggestions from wiz

Co-authored-by: wiz <j@wiz.biz>
This commit is contained in:
Jonathan Underwoodandwiz authored and Mononaut committed 2023-11-12 05:04:41 +00:00
1 parent d16773bfa0
commit 502a1c021e
3 files changed
+6 -10

No files matched your search

+2 -2
View File
@@ -214,11 +214,11 @@ class ElectrsApi implements AbstractBitcoinApi {
}
async $getMempoolTransactions(txids: string[]): Promise<IEsploraApi.Transaction[]> {
return this.failoverRouter.$post<IEsploraApi.Transaction[]>('/internal-api/mempool/txs', txids, 'json');
return this.failoverRouter.$post<IEsploraApi.Transaction[]>('/internal/mempool/txs', txids, 'json');
}
async $getAllMempoolTransactions(lastSeenTxid?: string): Promise<IEsploraApi.Transaction[]> {
return this.failoverRouter.$get<IEsploraApi.Transaction[]>('/internal-api/mempool/txs' + (lastSeenTxid ? '/' + lastSeenTxid : ''));
return this.failoverRouter.$get<IEsploraApi.Transaction[]>('/internal/mempool/txs' + (lastSeenTxid ? '/' + lastSeenTxid : ''));
}
$getTransactionHex(txId: string): Promise<string> {