package eip4844

import "github.com/ethereum/go-ethereum/consensus/misc/eip4844"

Index

Functions

func CalcBlobFee

func CalcBlobFee(config *params.ChainConfig, header *types.Header) *big.Int

CalcBlobFee calculates the blobfee from the header's excess blob gas field.

func CalcExcessBlobGas

func CalcExcessBlobGas(config *params.ChainConfig, parent *types.Header, headTimestamp uint64) uint64

CalcExcessBlobGas calculates the excess blob gas after applying the set of blobs on top of the excess blob gas.

func LatestMaxBlobsPerBlock

func LatestMaxBlobsPerBlock(cfg *params.ChainConfig) int

LatestMaxBlobsPerBlock returns the latest max blobs per block defined by the configuration, regardless of the currently active fork.

func MaxBlobGasPerBlock

func MaxBlobGasPerBlock(cfg *params.ChainConfig, time uint64) uint64

MaxBlobsPerBlock returns the maximum blob gas that can be spent in a block at the given timestamp.

func MaxBlobsPerBlock

func MaxBlobsPerBlock(cfg *params.ChainConfig, time uint64) int

MaxBlobsPerBlock returns the max blobs per block for a block at the given timestamp.

func VerifyEIP4844Header

func VerifyEIP4844Header(config *params.ChainConfig, parent, header *types.Header) error

VerifyEIP4844Header verifies the presence of the excessBlobGas field and that if the current block contains no transactions, the excessBlobGas is updated accordingly.

Source Files

eip4844.go

Version
v1.15.11 (latest)
Published
May 5, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
2 days ago

Tools for package owners.