UNPKG

postchain-client

Version:

Client library for accessing a Postchain node through REST.

9 lines (8 loc) 350 B
/// <reference types="node" /> import { RawGtxBody } from "../gtx/types"; /** * Calculates and returns the transaction RID, i.e., the merkle root hash of the transaction. * @param transaction The transaction in format of RawGtxBody * */ export declare function calculateTransactionRid(transaction: RawGtxBody, merkleHashVersion: number): Buffer;