/** * 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. */ /** * Timestamps from the node's perspective for round-trip time calculation. Used when computing node time offset and * transaction deadlines. The difference between them reflects node processing time and can vary with node load. * * @export * @interface CommunicationTimestampsDTO */ export interface CommunicationTimestampsDTO { /** * 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 CommunicationTimestampsDTO */ sendTimestamp?: string; /** * 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 CommunicationTimestampsDTO */ receiveTimestamp?: string; } /** * Check if a given object implements the CommunicationTimestampsDTO interface. */ export declare function instanceOfCommunicationTimestampsDTO(value: Record): value is CommunicationTimestampsDTO; export declare function CommunicationTimestampsDTOFromJSON(json: any): CommunicationTimestampsDTO; export declare function CommunicationTimestampsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommunicationTimestampsDTO; export declare function CommunicationTimestampsDTOToJSON(json: any): CommunicationTimestampsDTO; export declare function CommunicationTimestampsDTOToJSONTyped(value?: CommunicationTimestampsDTO | null, ignoreDiscriminator?: boolean): any;