Use new bulk endpoints to speed up forensics

This commit is contained in:
Mononaut
2023-08-17 02:42:59 +09:00
parent 7ec7ae7b95
commit 5bee54a2bf
4 changed files with 155 additions and 69 deletions

View File

@@ -24,6 +24,7 @@ export interface AbstractBitcoinApi {
$getOutspend(txId: string, vout: number): Promise<IEsploraApi.Outspend>;
$getOutspends(txId: string): Promise<IEsploraApi.Outspend[]>;
$getBatchedOutspends(txId: string[]): Promise<IEsploraApi.Outspend[][]>;
$getBatchedOutspendsInternal(txId: string[]): Promise<IEsploraApi.Outspend[][]>;
startHealthChecks(): void;
}