UNPKG

@liskhq/lisk-api-client

Version:
15 lines (14 loc) 492 B
import { Channel, ModuleMetadata, DecodedEventJSON } from './types'; export declare class EventMethods { private readonly _channel; private readonly _metadata; constructor(channel: Channel, moduleMetadata: ModuleMetadata[]); get(height: number, query?: { module?: string; name?: string; }): Promise<DecodedEventJSON[]>; subscribe(callback: (events: DecodedEventJSON[]) => void, query?: { module?: string; name?: string; }): void; }