Documentation

Block
in package

Block is a container for Ethereum block and contains various attributes related to it.

Tags
author

DubbaThony

Table of Contents

Properties

$baseFeePerGas  : OOGmp|null
$blobGasUsed  : int|null
$difficulty  : OOGmp
$excessBlobGas  : int|null
$extraData  : string
$gasLimit  : int
$gasUsed  : int
$hash  : Hash
$logsBloom  : Bloom
$miner  : Address
$nonce  : BlockNonce
$number  : int
$parentBeaconBlockRoot  : Hash|null
$parentHash  : Hash
$receiptsRoot  : Hash
$sha3Uncles  : Hash
$size  : int
$stateRoot  : Hash
$timestamp  : int
$totalDifficulty  : OOGmp
$transactions  : array<string|int, Transaction>|array<string|int, Hash>
$transactionsRoot  : Hash
$uncles  : array<string|int, Hash>
$validatorWithdrawals  : array<string|int, ValidatorWithdrawal>
$validatorWithdrawalsRoot  : Hash|null

Methods

fromRPCArr()  : static
Constructs a Block object from an array received through RPC.
isEIP1559()  : bool
Checks if the block looks like coming from EIP-1559 enabled chain by looking if base fee is defined.
isEIP4844()  : bool
Checks if the block looks like coming from EIP-4844 enabled chain by looking if blob fees are defined

Properties

$blobGasUsed

public int|null $blobGasUsed

$excessBlobGas

public int|null $excessBlobGas

$extraData

public string $extraData

$gasLimit

public int $gasLimit

$gasUsed

public int $gasUsed

$parentBeaconBlockRoot

public Hash|null $parentBeaconBlockRoot

$timestamp

public int $timestamp

$validatorWithdrawalsRoot

public Hash|null $validatorWithdrawalsRoot

Methods

isEIP1559()

Checks if the block looks like coming from EIP-1559 enabled chain by looking if base fee is defined.

public isEIP1559() : bool
Return values
bool

True if block is EIP-1559, otherwise false.


        
On this page

Search results