near-api-js - v7.0.4
    Preparing search index...

    Type Alias BlockHeaderView

    Contains main info about the block.

    type BlockHeaderView = {
        approvals: (Signature | null)[];
        block_body_hash?: CryptoHash | null;
        block_merkle_root: CryptoHash;
        block_ordinal?: number | null;
        challenges_result: SlashedValidator[];
        challenges_root: CryptoHash;
        chunk_endorsements?: number[][] | null;
        chunk_headers_root: CryptoHash;
        chunk_mask: boolean[];
        chunk_receipts_root: CryptoHash;
        chunk_tx_root: CryptoHash;
        chunks_included: number;
        epoch_id: CryptoHash;
        epoch_sync_data_hash?: CryptoHash | null;
        gas_price: NearToken;
        hash: CryptoHash;
        height: number;
        last_ds_final_block: CryptoHash;
        last_final_block: CryptoHash;
        latest_protocol_version: number;
        next_bp_hash: CryptoHash;
        next_epoch_id: CryptoHash;
        outcome_root: CryptoHash;
        prev_hash: CryptoHash;
        prev_height?: number | null;
        prev_state_root: CryptoHash;
        random_value: CryptoHash;
        rent_paid?: NearToken;
        signature: Signature;
        timestamp: number;
        timestamp_nanosec: string;
        total_supply: NearToken;
        validator_proposals: ValidatorStakeView[];
        validator_reward?: NearToken;
    }
    Index

    Properties

    approvals: (Signature | null)[]
    block_body_hash?: CryptoHash | null
    block_merkle_root: CryptoHash
    block_ordinal?: number | null
    challenges_result: SlashedValidator[]
    challenges_root: CryptoHash
    chunk_endorsements?: number[][] | null
    chunk_headers_root: CryptoHash
    chunk_mask: boolean[]
    chunk_receipts_root: CryptoHash
    chunk_tx_root: CryptoHash
    chunks_included: number
    epoch_id: CryptoHash
    epoch_sync_data_hash?: CryptoHash | null
    gas_price: NearToken
    height: number
    last_ds_final_block: CryptoHash
    last_final_block: CryptoHash
    latest_protocol_version: number
    next_bp_hash: CryptoHash
    next_epoch_id: CryptoHash
    outcome_root: CryptoHash
    prev_hash: CryptoHash

    The hash of the previous Block

    prev_height?: number | null
    prev_state_root: CryptoHash
    random_value: CryptoHash
    rent_paid?: NearToken

    TODO(2271): deprecated.

    signature: Signature

    Signature of the block producer.

    timestamp: number

    Legacy json number. Should not be used.

    timestamp_nanosec: string
    total_supply: NearToken
    validator_proposals: ValidatorStakeView[]
    validator_reward?: NearToken

    TODO(2271): deprecated.