Avalanche SDK Client
    Preparing search index...

    Type Alias Block<quantity, includeTransactions, blockTag, transaction>

    type Block<
        quantity = bigint,
        includeTransactions extends boolean = boolean,
        blockTag extends BlockTag = BlockTag,
        transaction = Transaction<bigint, number, blockTag extends "pending" ? true : false>,
    > = {
        baseFeePerGas: quantity | null;
        blobGasUsed: quantity;
        blockExtraData?: Hex;
        blockGasCost?: bigint;
        difficulty: quantity;
        excessBlobGas: quantity;
        extDataGasUsed?: bigint;
        extDataHash?: Hex;
        extraData: Hex;
        gasLimit: quantity;
        gasUsed: quantity;
        hash: blockTag extends "pending" ? null : Hash;
        logsBloom: blockTag extends "pending" ? null : Hex;
        minDelayExcess?: Hex;
        miner: Address;
        mixHash: Hash;
        nonce: blockTag extends "pending" ? null : Hex;
        number: blockTag extends "pending" ? null : quantity;
        parentBeaconBlockRoot?: Hex;
        parentHash: Hash;
        receiptsRoot: Hex;
        sealFields: Hex[];
        sha3Uncles: Hash;
        size: quantity;
        stateRoot: Hash;
        timestamp: quantity;
        timestampMilliseconds?: Hex;
        totalDifficulty: quantity | null;
        transactions: includeTransactions extends true ? transaction[] : Hash[];
        transactionsRoot: Hash;
        uncles: Hash[];
        withdrawals?: Withdrawal[];
        withdrawalsRoot?: Hex;
    }

    Type Parameters

    • quantity = bigint
    • includeTransactions extends boolean = boolean
    • blockTag extends BlockTag = BlockTag
    • transaction = Transaction<bigint, number, blockTag extends "pending" ? true : false>
    Index

    Properties

    baseFeePerGas: quantity | null

    Base fee per gas

    blobGasUsed: quantity

    Total used blob gas by all transactions in this block

    blockExtraData?: Hex

    Extra block data in the Avalanche network.

    blockGasCost?: bigint

    Block gas cost in the Avalanche network.

    difficulty: quantity

    Difficulty for this block

    excessBlobGas: quantity

    Excess blob gas

    extDataGasUsed?: bigint

    External data gas used in the Avalanche network.

    extDataHash?: Hex

    Hash of external data in the Avalanche network.

    extraData: Hex

    "Extra data" field of this block

    gasLimit: quantity

    Maximum gas allowed in this block

    gasUsed: quantity

    Total used gas by all transactions in this block

    hash: blockTag extends "pending" ? null : Hash

    Block hash or null if pending

    logsBloom: blockTag extends "pending" ? null : Hex

    Logs bloom filter or null if pending

    minDelayExcess?: Hex

    Minimum delay excess in the Avalanche network.

    miner: Address

    Address that received this block’s mining rewards, COINBASE address

    mixHash: Hash

    Unique identifier for the block.

    nonce: blockTag extends "pending" ? null : Hex

    Proof-of-work hash or null if pending

    number: blockTag extends "pending" ? null : quantity

    Block number or null if pending

    parentBeaconBlockRoot?: Hex

    Root of the parent beacon chain block

    parentHash: Hash

    Parent block hash

    receiptsRoot: Hex

    Root of the this block’s receipts trie

    sealFields: Hex[]
    sha3Uncles: Hash

    SHA3 of the uncles data in this block

    size: quantity

    Size of this block in bytes

    stateRoot: Hash

    Root of this block’s final state trie

    timestamp: quantity

    Unix timestamp of when this block was collated

    timestampMilliseconds?: Hex

    Block timestamp in milliseconds (Avalanche-specific).

    totalDifficulty: quantity | null

    Total difficulty of the chain until this block

    transactions: includeTransactions extends true ? transaction[] : Hash[]

    List of transaction objects or hashes

    transactionsRoot: Hash

    Root of this block’s transaction trie

    uncles: Hash[]

    List of uncle hashes

    withdrawals?: Withdrawal[]

    List of withdrawal objects

    withdrawalsRoot?: Hex

    Root of the this block’s withdrawals trie