/** * 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 { NetworkTypeEnum } from './NetworkTypeEnum'; import type { LinkActionEnum } from './LinkActionEnum'; /** * Transaction to link an account with a VRF public key. * The key is used to randomize block production and leader/participant selection. * Required for all harvesting eligible accounts. * * @export * @interface VrfKeyLinkTransactionDTO */ export interface VrfKeyLinkTransactionDTO { /** * Unsigned 32-bit integer. * Represented as integer since it fits in JSON number precision. * * @type {number} * @memberof VrfKeyLinkTransactionDTO */ size: number; /** * 64-byte Ed25519 signature (128 hex characters). Generated by the signer using their private key * over the serialized entity payload. Can be verified with the signer's public key (`signerPublicKey`). * Used for blocks, transactions, and cosignatures. * * @type {string} * @memberof VrfKeyLinkTransactionDTO */ signature: string; /** * 256-bit public key encoded as a hexadecimal string (64 hex characters). * @type {string} * @memberof VrfKeyLinkTransactionDTO */ signerPublicKey: string; /** * Entity version. Indicates the schema variant for serialization and validation. * @type {number} * @memberof VrfKeyLinkTransactionDTO */ version: number; /** * Network type (mainnet or testnet). Ensures the entity targets the correct network. * @type {NetworkTypeEnum} * @memberof VrfKeyLinkTransactionDTO */ network: NetworkTypeEnum; /** * Entity type identifier (e.g. transaction type code, block type). Determines the entity schema. * @type {number} * @memberof VrfKeyLinkTransactionDTO */ type: number; /** * Absolute amount expressed in the mosaic's smallest (atomic) unit, with no decimal point. * For example, an amount of `123456789` for a mosaic with divisibility 6 represents * `123.456789` whole units. Encoded as a string to preserve precision, since the value * is an unsigned 64-bit integer. * * @type {string} * @memberof VrfKeyLinkTransactionDTO */ maxFee: 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 VrfKeyLinkTransactionDTO */ deadline: string; /** * 256-bit public key encoded as a hexadecimal string (64 hex characters). * @type {string} * @memberof VrfKeyLinkTransactionDTO */ linkedPublicKey: string; /** * * @type {LinkActionEnum} * @memberof VrfKeyLinkTransactionDTO */ linkAction: LinkActionEnum; } /** * Check if a given object implements the VrfKeyLinkTransactionDTO interface. */ export declare function instanceOfVrfKeyLinkTransactionDTO(value: Record): value is VrfKeyLinkTransactionDTO; export declare function VrfKeyLinkTransactionDTOFromJSON(json: any): VrfKeyLinkTransactionDTO; export declare function VrfKeyLinkTransactionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): VrfKeyLinkTransactionDTO; export declare function VrfKeyLinkTransactionDTOToJSON(json: any): VrfKeyLinkTransactionDTO; export declare function VrfKeyLinkTransactionDTOToJSONTyped(value?: VrfKeyLinkTransactionDTO | null, ignoreDiscriminator?: boolean): any;