@liskhq/lisk-api-client
Version:
An API client for the Lisk network
15 lines (14 loc) • 492 B
TypeScript
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;
}