/** * 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 an embedded transaction entry returned by the transaction endpoints. * These fields identify the parent aggregate transaction and the embedded transaction's position inside it. * * @export * @interface EmbeddedTransactionMetaDTO */ export interface EmbeddedTransactionMetaDTO { /** * 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 EmbeddedTransactionMetaDTO */ height: string; /** * 256-bit hash encoded as a 64-character hexadecimal string. * @type {string} * @memberof EmbeddedTransactionMetaDTO */ aggregateHash: string; /** * Unique identifier of the object in the node's database (MongoDB ObjectId). * Used as the `offset` parameter value for cursor-based pagination. * * @type {string} * @memberof EmbeddedTransactionMetaDTO */ aggregateId: string; /** * Embedded transaction index within the parent aggregate transaction. * @type {number} * @memberof EmbeddedTransactionMetaDTO */ 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 EmbeddedTransactionMetaDTO */ 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 EmbeddedTransactionMetaDTO */ feeMultiplier?: number; } /** * Check if a given object implements the EmbeddedTransactionMetaDTO interface. */ export declare function instanceOfEmbeddedTransactionMetaDTO(value: Record): value is EmbeddedTransactionMetaDTO; export declare function EmbeddedTransactionMetaDTOFromJSON(json: any): EmbeddedTransactionMetaDTO; export declare function EmbeddedTransactionMetaDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddedTransactionMetaDTO; export declare function EmbeddedTransactionMetaDTOToJSON(json: any): EmbeddedTransactionMetaDTO; export declare function EmbeddedTransactionMetaDTOToJSONTyped(value?: EmbeddedTransactionMetaDTO | null, ignoreDiscriminator?: boolean): any;