2020-12-28 04:47:22 +07:00
|
|
|
import { IEsploraApi } from './esplora-api.interface';
|
2020-12-20 22:36:36 +07:00
|
|
|
|
|
|
|
export interface AbstractBitcoinApi {
|
2020-12-28 04:47:22 +07:00
|
|
|
$getRawMempool(): Promise<IEsploraApi.Transaction['txid'][]>;
|
|
|
|
$getRawTransaction(txId: string, skipConversion?: boolean, addPrevout?: boolean): Promise<IEsploraApi.Transaction>;
|
2020-12-21 23:08:34 +07:00
|
|
|
$getBlockHeightTip(): Promise<number>;
|
|
|
|
$getTxIdsForBlock(hash: string): Promise<string[]>;
|
|
|
|
$getBlockHash(height: number): Promise<string>;
|
2020-12-28 04:47:22 +07:00
|
|
|
$getBlock(hash: string): Promise<IEsploraApi.Block>;
|
|
|
|
$getAddress(address: string): Promise<IEsploraApi.Address>;
|
|
|
|
$getAddressTransactions(address: string, lastSeenTxId: string): Promise<IEsploraApi.Transaction[]>;
|
2021-01-11 01:51:57 +07:00
|
|
|
$getAddressPrefix(prefix: string): string[];
|
2020-12-20 22:36:36 +07:00
|
|
|
}
|