@siglesiasg/node-red-hyperledger-fabric-gateway
Version:
Hyperledger Fabric 2.x nodes for node-red with latest fabric-gateway library
23 lines • 682 B
TypeScript
import { Block } from '@hyperledger/fabric-protos/lib/common';
export declare class BlockModel {
blockNumber: number;
blockHash: string;
channelId: string;
transactions: TransactionModel[];
}
export declare class TransactionModel {
blockNumber?: number;
transactionIndex: number;
transactionId: string;
isValid: boolean;
rawData?: RWSetModel[];
}
export declare class RWSetModel {
rwIndex: number;
key: string;
data?: any;
isChaincodeOperation?: boolean;
isDelete?: boolean;
}
export declare function buildBlockEventModel(blockData: Block | Uint8Array, channelId: string): BlockModel;
//# sourceMappingURL=block.model.d.ts.map