@hashgraphonline/standards-sdk
Version:
The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.
40 lines • 1.49 kB
TypeScript
import { ParsedTransaction } from './transaction-parser-types';
/**
* Types for transaction parsing results
*/
export declare class TransactionParser {
/**
* Parse a base64 encoded transaction body and return structured data
* @param transactionBodyBase64 - The base64 encoded transaction body
* @returns The parsed transaction
*/
static parseTransactionBody(transactionBodyBase64: string): ParsedTransaction;
/**
* Parse details from a complete schedule response
* @param scheduleResponse - The schedule response to parse
* @returns The parsed transaction
*/
static parseScheduleResponse(scheduleResponse: {
transaction_body: string;
memo?: string;
}): ParsedTransaction;
/**
* Determine the transaction type
* @param txBody - The transaction body to determine the type of
* @returns The type of the transaction
*/
private static getTransactionType;
/**
* Convert technical transaction type to human-readable format
* @param type - The technical transaction type
* @returns The human-readable transaction type
*/
private static getHumanReadableType;
/**
* Get a human-readable summary of the transaction
* @param parsedTx - The parsed transaction
* @returns The human-readable summary of the transaction
*/
static getTransactionSummary(parsedTx: ParsedTransaction): string;
}
//# sourceMappingURL=transaction-parser.d.ts.map