Fetch block txs from mempool/electrs in bulk

This commit is contained in:
Mononaut
2023-07-24 16:58:30 +09:00
parent 81d1c0a4d5
commit 0ebfd6f017
5 changed files with 42 additions and 35 deletions

View File

@@ -8,6 +8,7 @@ export interface AbstractBitcoinApi {
$getBlockHeightTip(): Promise<number>;
$getBlockHashTip(): Promise<string>;
$getTxIdsForBlock(hash: string): Promise<string[]>;
$getTxsForBlock(hash: string): Promise<IEsploraApi.Transaction[]>;
$getBlockHash(height: number): Promise<string>;
$getBlockHeader(hash: string): Promise<string>;
$getBlock(hash: string): Promise<IEsploraApi.Block>;