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.
17 lines (16 loc) • 806 B
TypeScript
import { Checkpointer } from './checkpointer';
/**
* Provides static factory functions used to create instances of default
* {@link module:fabric-network.Checkpointer|Checkpointer} implementations.
* @memberof module:fabric-network
*/
export declare class DefaultCheckpointers {
/**
* Create a checkpointer that uses the specified file to store persistent state. If the file does not exist, it will
* be created and the checkpointer will have an uninitialized state that will accept any events. If the file does
* exist, it must contain valid checkpoint state.
* @param {string} path Path to a file holding persistent checkpoint state.
* @returns {Promise<module:fabric-network.Checkpointer>} A checkpointer.
*/
static file(path: string): Promise<Checkpointer>;
}