@signumjs/core
Version:
Principal package with functions and models for building Signum Network applications.
40 lines (39 loc) • 1.26 kB
TypeScript
/**
* Original work Copyright (c) 2018 PoC-Consortium
* Modified work Copyright (c) 2019 Burst Apps Team
* Modified work Copyright (c) 2023 Signum Network
*/
import { Transaction } from './transaction';
/**
* Block
* @category entities
*/
export interface Block {
readonly baseTarget: number;
readonly block: string;
readonly blockReward: string;
readonly blockRewardNQT: string;
readonly blockSignature: string;
readonly generator: string;
readonly generatorRS: string;
readonly generationSignature: string;
readonly generatorPublicKey: string;
readonly height: number;
readonly nextBlock: string;
readonly nonce: string;
readonly numberOfTransactions: number;
readonly payloadHash: string;
readonly payloadLength: number;
readonly previousBlock: string;
readonly previousBlockHash: string;
readonly requestProcessingTime: number;
readonly scoopNum: number;
readonly timestamp: number;
readonly totalAmountNQT: string;
readonly totalFeeNQT: string;
/**
* The block may return transaction ids only, or the entire transaction object, iff `includeTransactions=true`
*/
readonly transactions: string[] | Transaction[];
readonly version: number;
}