@solana/web3.js
    Preparing search index...

    Type Alias VersionedBlockResponse

    A processed block fetched from the RPC API

    type VersionedBlockResponse = {
        blockhash: Blockhash;
        blockTime: number | null;
        parentSlot: number;
        previousBlockhash: Blockhash;
        rewards?: {
            commission?: number | null;
            lamports: number;
            postBalance: number | null;
            pubkey: string;
            rewardType: string | null;
        }[];
        transactions: {
            meta: ConfirmedTransactionMeta
            | null;
            transaction: { message: VersionedMessage; signatures: string[] };
            version?: TransactionVersion;
        }[];
    }
    Index
    blockhash: Blockhash

    Blockhash of this block

    blockTime: number | null

    The unix timestamp of when the block was processed

    parentSlot: number

    Slot index of this block's parent

    previousBlockhash: Blockhash

    Blockhash of this block's parent

    rewards?: {
        commission?: number | null;
        lamports: number;
        postBalance: number | null;
        pubkey: string;
        rewardType: string | null;
    }[]

    Vector of block rewards

    Type Declaration

    • Optionalcommission?: number | null

      Vote account commission when the reward was credited, only present for voting and staking rewards

    • lamports: number

      Reward value in lamports

    • postBalance: number | null

      Account balance after reward is applied

    • pubkey: string

      Public key of reward recipient

    • rewardType: string | null

      Type of reward received

    transactions: {
        meta: ConfirmedTransactionMeta | null;
        transaction: { message: VersionedMessage; signatures: string[] };
        version?: TransactionVersion;
    }[]

    Vector of transactions with status meta and original message

    Type Declaration