UNPKG

fabric-network

Version:

SDK for writing node.js applications to interact with Hyperledger Fabric. This package encapsulates the APIs to connect to a Fabric network, submit transactions and perform queries against the ledger.

18 lines (17 loc) 627 B
import { ContractListener, ListenerOptions } from '../../events'; import { Network } from '../../network'; import { ListenerSession } from './listenersession'; export declare class ContractListenerSession implements ListenerSession { private readonly listener; private chaincodeId; private network; private blockListener; private options; constructor(listener: ContractListener, chaincodeId: string, network: Network, options?: ListenerOptions); start(): Promise<void>; close(): void; private newBlockListener; private onContractEvent; private isMatch; private notifyListener; }