Adding optional Blockstream esplora backend support.
This commit is contained in:
10
backend/src/api/bitcoin/bitcoin-api-abstract-factory.ts
Normal file
10
backend/src/api/bitcoin/bitcoin-api-abstract-factory.ts
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user