UNPKG

postchain-client

Version:

Client library for accessing a Postchain node through REST.

12 lines 448 B
import * as gtxTool from "../gtx/gtx"; import { logger } from "../.."; /** * Decodes the transaction using ASN.1. * @returns the transaction decoded in GTX format */ export const decodeTransactionToGtx = (encodedTransaction) => { const gtx = gtxTool.deserialize(encodedTransaction); logger.debug(`Output from deserializing a raw transaction: ${JSON.stringify(gtx)}`); return gtx; }; //# sourceMappingURL=decodeTransactionToGtx.js.map