UNPKG

452 BTypeScriptView Raw
1import { Client, ITxMiddlewareHandler } from './client';
2/**
3 * Creates the default set of tx middleware required to successfully commit a tx to a Loom DAppChain.
4 * @param client The client the middleware is being created for.
5 * @param privateKey Private key that should be used to sign txs.
6 * @returns Set of middleware.
7 */
8export declare function createDefaultTxMiddleware(client: Client, privateKey: Uint8Array): ITxMiddlewareHandler[];