UNPKG

blockchain-api

Version:

API utilities for interacting with the Exatechl2 blockchain

44 lines (43 loc) 1.02 kB
import { Block } from '../../types'; export interface FormattedBlock { id: string; number: string; numberDecimal: number; hash: string; timestamp: number; age: number; txCount: number; size: string; sizeBytes: number; status: string; gasLimit: string; gasLimitDecimal: number; gasUsed: string; gasUsedDecimal: number; gasUsedPercentage: number; baseFee: string; stateRoot?: string; receiptsRoot?: string; extraData?: string; logsBloom?: string; difficulty?: string; totalDifficulty?: string; nonce?: string; mixHash?: string; sha3Uncles?: string; sendCount?: string; sendRoot?: string; l1BlockNumber?: number; validator?: string; parentHash?: string; rootHash?: string; transactions?: any[]; batchId?: string | number; batchStatus?: string; } /** * * @param {Block} block * @returns {FormattedBlock} */ export declare function formatBlockForDisplay(block: Block): FormattedBlock;