BlockParams
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:12
a BlockParams encodes the minimal required properties for a formatted block.
Properties
Section titled “Properties”baseFeePerGas
Section titled “baseFeePerGas”baseFeePerGas: null | bigint;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:81
The protocol-defined base fee per gas in an [[link-eip-1559]] block.
blobGasUsed?
Section titled “blobGasUsed?”optional blobGasUsed: null | bigint;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:58
The total amount of BLOb gas consumed by transactions within the block. See [[link-eip4844].
difficulty
Section titled “difficulty”difficulty: bigint;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:45
For proof-of-work networks, the difficulty target is used to adjust the difficulty in mining to ensure an expected block rate.
excessBlobGas?
Section titled “excessBlobGas?”optional excessBlobGas: null | bigint;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:63
The running total of BLOb gas consumed in excess of the target prior to the block. See [[link-eip-4844]].
extraData
Section titled “extraData”extraData: string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:76
Additional data the miner choose to include.
gasLimit
Section titled “gasLimit”gasLimit: bigint;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:49
The maximum amount of gas a block can consume.
gasUsed
Section titled “gasUsed”gasUsed: bigint;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:53
The amount of gas a block consumed.
optional hash: null | string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:16
The block hash.
miner: string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:67
The miner (or author) of a block.
nonce: string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:40
A random sequence provided during the mining process for proof-of-work networks.
number
Section titled “number”number: number;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:20
The block number.
parentBeaconBlockRoot?
Section titled “parentBeaconBlockRoot?”optional parentBeaconBlockRoot: null | string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:35
The hash tree root of the parent beacon block for the given execution block. See [[link-eip-4788]].
parentHash
Section titled “parentHash”parentHash: string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:30
The hash of the previous block in the blockchain. The genesis block has the parentHash of the [[ZeroHash]].
prevRandao?
Section titled “prevRandao?”optional prevRandao: null | string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:72
The latest RANDAO mix of the post beacon state of the previous block.
receiptsRoot?
Section titled “receiptsRoot?”optional receiptsRoot: null | string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:90
The hash of the transaction receipts trie.
stateRoot?
Section titled “stateRoot?”optional stateRoot: null | string;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:86
The root hash for the global state after applying changes in this block.
timestamp
Section titled “timestamp”timestamp: number;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:25
The timestamp for this block, which is the number of seconds since epoch that this block was included.
transactions
Section titled “transactions”transactions: readonly ( | string | TransactionResponseParams)[];
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/formatting.d.ts:94
The list of transactions in the block.