Adding optional Blockstream esplora backend support.

This commit is contained in:
Simon Lindh
2019-10-22 17:09:07 +08:00
parent 64e97b6f1f
commit afb3ecc57d
12 changed files with 1361 additions and 33 deletions

View File

@@ -0,0 +1,10 @@
import { IMempoolInfo, ITransaction, IBlock } from '../../interfaces';
export interface AbstractBitcoinApi {
getMempoolInfo(): Promise<IMempoolInfo>;
getRawMempool(): Promise<ITransaction['txid'][]>;
getRawTransaction(txId: string): Promise<ITransaction>;
getBlockCount(): Promise<number>;
getBlock(hash: string): Promise<IBlock>;
getBlockHash(height: number): Promise<string>;
}