Address page mostly working.

This commit is contained in:
softsimon
2020-12-22 06:04:31 +07:00
parent ecc0f316cc
commit f84b9e6582
9 changed files with 195 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
import { MempoolInfo, Transaction, Block, MempoolEntries, MempoolEntry, Address } from '../../interfaces';
import { MempoolInfo, Transaction, Block, MempoolEntries, MempoolEntry, Address, AddressInformation,
ScriptHashBalance, ScriptHashHistory } from '../../interfaces';
export interface AbstractBitcoinApi {
$getMempoolInfo(): Promise<MempoolInfo>;
@@ -10,6 +11,9 @@ export interface AbstractBitcoinApi {
$getBlock(hash: string): Promise<Block>;
$getMempoolEntry(txid: string): Promise<MempoolEntry>;
$getAddress(address: string): Promise<Address>;
$validateAddress(address: string): Promise<AddressInformation>;
$getScriptHashBalance(scriptHash: string): Promise<ScriptHashBalance>;
$getScriptHashHistory(scriptHash: string): Promise<ScriptHashHistory[]>;
// Custom
$getRawMempoolVerbose(): Promise<MempoolEntries>;