@cityofzion/neo-js
Version:
Running NEO blockchain full node with Node.js and MongoDB.
14 lines (13 loc) • 518 B
TypeScript
import { Mongoose } from 'mongoose';
export declare class BlockMetaDao {
private model;
constructor(mongoose: Mongoose, collectionName: string);
count(): Promise<number>;
getHighest(): Promise<object | undefined>;
getHighestHeight(): Promise<number>;
save(data: object): Promise<void>;
removeByHeight(height: number): Promise<void>;
analyze(startHeight: number, endHeight: number): Promise<object[]>;
reviewIndex(key: string, keyObj: object): Promise<void>;
private getModel;
}