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.

8 lines (7 loc) 262 B
/// <reference types="node" /> import { Network } from '../../network'; import { Query } from './query'; export declare type QueryHandlerFactory = (network: Network) => QueryHandler; export interface QueryHandler { evaluate(query: Query): Promise<Buffer>; }