bsp-network
Version:
SDK for writing node.js applications to interact with bsp network. This package encapsulates the APIs to connect to a bsp network, submit transactions and perform queries against the ledger.
13 lines (12 loc) • 355 B
TypeScript
/**
* Copyright 2020 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/// <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>;
}