Add suggestions from wiz

Co-authored-by: wiz <j@wiz.biz>
This commit is contained in:
Jonathan Underwood
2023-08-28 02:18:59 +09:00
committed by Mononaut
parent d16773bfa0
commit 502a1c021e
3 changed files with 6 additions and 10 deletions

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> {