/** * Catapult REST Endpoints * OpenAPI Specification of catapult-rest * * The version of the OpenAPI document: 1.0.5 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Metadata for a top-level (non-embedded) transaction entry returned by the transaction endpoints. * For confirmed transactions, these fields describe the transaction's position in the block and the * proof-related hashes associated with that block entry. * * For unconfirmed top-level transactions, REST returns: * - `height` = `"0"` * - `index` = `0` * - `hash` = transaction hash * - `merkleComponentHash` = transaction hash * * Block-derived fields such as `timestamp` and `feeMultiplier` are not present until the transaction * is included in a block. * * @export * @interface TransactionMetaDTO */ export interface TransactionMetaDTO { /** * Height of the block containing the referenced transaction or parent aggregate transaction. * Returned as a decimal string. The value is `"0"` when the transaction is not included in a * block yet, for example for unconfirmed transactions and partial aggregate transactions. * * @type {string} * @memberof TransactionMetaDTO */ height: string; /** * 256-bit hash encoded as a 64-character hexadecimal string. * @type {string} * @memberof TransactionMetaDTO */ hash: string; /** * 256-bit hash encoded as a 64-character hexadecimal string. * @type {string} * @memberof TransactionMetaDTO */ merkleComponentHash: string; /** * Transaction index within the block. For unconfirmed top-level transactions, this value is `0`. * * @type {number} * @memberof TransactionMetaDTO */ index: number; /** * Network timestamp in **milliseconds** since the creation of the nemesis (first) block. * Used for block timestamps, transaction deadlines, and time synchronization. * * **Finding the nemesis block time:** The `epochAdjustment` field returned by the * [`/network/properties`] endpoint gives the nemesis block creation time in seconds since the * [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). For Symbol MAINNET this is * always `1615853185` (15 March 2021, 00:06:25 UTC). * * **Converting to real time:** Add this timestamp (ms) to `epochAdjustment × 1000` (ms), then use standard date functions. * Note: `epochAdjustment` may be returned as a string like `"1615853185s"`; use the numeric part. * * @type {string} * @memberof TransactionMetaDTO */ timestamp?: string; /** * Fee multiplier applied to the size of a transaction to obtain its fee, in * [absolute units](https://docs.symbol.dev/concepts/mosaic.html#divisibility). * Set by the harvester when creating a block; stored in the block header. * * The effective fee for a transaction is: * * `effectiveFee = transaction.size × block.feeMultiplier` * * Node owners can configure the fee multiplier to any non-negative value (including zero). * For transaction senders, the median fee multiplier over recent blocks is available * via `/network/fees/transaction`; using `medianFeeMultiplier` or higher * improves chances of inclusion. See the [fees documentation](https://docs.symbol.dev/concepts/fees.html). * * @type {number} * @memberof TransactionMetaDTO */ feeMultiplier?: number; } /** * Check if a given object implements the TransactionMetaDTO interface. */ export declare function instanceOfTransactionMetaDTO(value: Record): value is TransactionMetaDTO; export declare function TransactionMetaDTOFromJSON(json: any): TransactionMetaDTO; export declare function TransactionMetaDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionMetaDTO; export declare function TransactionMetaDTOToJSON(json: any): TransactionMetaDTO; export declare function TransactionMetaDTOToJSONTyped(value?: TransactionMetaDTO | null, ignoreDiscriminator?: boolean): any;