load mempool txs in bulk from esplora

This commit is contained in:
Mononaut
2023-07-22 14:09:11 +09:00
parent e2fdacfddd
commit 202d4122b4
4 changed files with 86 additions and 35 deletions

View File

@@ -59,6 +59,10 @@ class BitcoinApi implements AbstractBitcoinApi {
});
}
$getMempoolTransactions(expectedCount: number): Promise<IEsploraApi.Transaction[]> {
return Promise.resolve([]);
}
$getTransactionHex(txId: string): Promise<string> {
return this.$getRawTransaction(txId, true)
.then((tx) => tx.hex || '');