Indexable
[key: string]: unknown
Properties
Private
Readonly
_bftMethod
Private
Readonly
_chain
_chain: Chain
Private
_db
_db: Database
Methods
areHeadersContradicting
-
Returns Promise<{
valid: boolean;
}>
getAssetsByHeight
- getAssetsByHeight(context: RequestContext): Promise<{
data: string;
module: string;
}[]>
-
Returns Promise<{
data: string;
module: string;
}[]>
getBlockByHeight
- getBlockByHeight(context: RequestContext): Promise<BlockJSON>
-
getBlockByID
- getBlockByID(context: RequestContext): Promise<BlockJSON>
-
getBlocksByHeightBetween
- getBlocksByHeightBetween(context: RequestContext): Promise<BlockJSON[]>
-
Returns Promise<BlockJSON[]>
getBlocksByIDs
- getBlocksByIDs(context: RequestContext): Promise<BlockJSON[]>
-
Returns Promise<BlockJSON[]>
getEvents
- getEvents(context: RequestContext): Promise<{
data: string;
height: number;
index: number;
module: string;
name: string;
topics: string[];
}[]>
-
Returns Promise<{
data: string;
height: number;
index: number;
module: string;
name: string;
topics: string[];
}[]>
getGeneratorList
- getGeneratorList(_: RequestContext): Promise<{
list: GeneratorInfo[];
}>
-
Returns Promise<{
list: GeneratorInfo[];
}>
getTransactionsByHeight
- getTransactionsByHeight(context: RequestContext): Promise<TransactionJSON[]>
-
init
- init(db: Database): void
-
Returns void
proveEvents
- proveEvents(context: RequestContext): Promise<{
queries: ({ key: string; value: string; bitmap: string; })[];
siblingHashes: string[];
}>
-
Returns Promise<{
queries: ({ key: string; value: string; bitmap: string; })[];
siblingHashes: string[];
}>