Type alias VersionedBlockResponse

VersionedBlockResponse: {
    blockTime: number | null;
    blockhash: Blockhash;
    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;
    }[];
}

A processed block fetched from the RPC API

Type declaration

  • blockTime: number | null

    The unix timestamp of when the block was processed

  • blockhash: Blockhash

    Blockhash of this block

  • parentSlot: number

    Slot index of this block's parent

  • previousBlockhash: Blockhash

    Blockhash of this block's parent

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

    Vector of block rewards

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

    Vector of transactions with status meta and original message

Generated using TypeDoc