/** * 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. */ import type { FinalizedBlockDTO } from './FinalizedBlockDTO'; /** * Chain state: block height, chain score, and the latest finalized block (most recent * block made permanent; it will never be rolled back). * The chain score is the sum of all block scores in the chain; each block contributes * `difficulty − time elapsed since previous block`. Higher score = better chain. * Used during synchronization to select the canonical chain when forks exist. * * @export * @interface ChainInfoDTO */ export interface ChainInfoDTO { /** * Height of a block in the blockchain. Starts at 1 and increments by one per block. * Represented as a string to preserve precision, since the value is an unsigned 64-bit integer. * * @type {string} * @memberof ChainInfoDTO */ height: string; /** * 64-bit part of the full 128-bit chain score. The full score is * `(scoreHigh << 64) + scoreLow`. Each block adds `difficulty − time elapsed since previous block`; * the chain score is the sum. During synchronization, nodes select the chain with the highest score. * * @type {string} * @memberof ChainInfoDTO */ scoreHigh: string; /** * 64-bit part of the full 128-bit chain score. The full score is * `(scoreHigh << 64) + scoreLow`. Each block adds `difficulty − time elapsed since previous block`; * the chain score is the sum. During synchronization, nodes select the chain with the highest score. * * @type {string} * @memberof ChainInfoDTO */ scoreLow: string; /** * The most recent block that has been made permanent and will never be rolled back. * See [finalization](https://docs.symbol.dev/concepts/block.html#finalization). * * @type {FinalizedBlockDTO} * @memberof ChainInfoDTO */ latestFinalizedBlock: FinalizedBlockDTO; } /** * Check if a given object implements the ChainInfoDTO interface. */ export declare function instanceOfChainInfoDTO(value: Record): value is ChainInfoDTO; export declare function ChainInfoDTOFromJSON(json: any): ChainInfoDTO; export declare function ChainInfoDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainInfoDTO; export declare function ChainInfoDTOToJSON(json: any): ChainInfoDTO; export declare function ChainInfoDTOToJSONTyped(value?: ChainInfoDTO | null, ignoreDiscriminator?: boolean): any;