Class BlockOverrides.Builder

java.lang.Object
org.hyperledger.besu.plugin.data.BlockOverrides.Builder
Enclosing class:
BlockOverrides

public static class BlockOverrides.Builder extends Object
Builder for BlockOverrides.
  • Constructor Details

    • Builder

      public Builder()
      Constructs a new Builder instance.
  • Method Details

    • timestamp

      public BlockOverrides.Builder timestamp(Long timestamp)
      Sets the timestamp.
      Parameters:
      timestamp - the timestamp to set
      Returns:
      the builder instance
    • blockNumber

      public BlockOverrides.Builder blockNumber(Long blockNumber)
      Sets the block number.
      Parameters:
      blockNumber - the block number to set
      Returns:
      the builder instance
    • blockHash

      public BlockOverrides.Builder blockHash(org.hyperledger.besu.datatypes.Hash blockHash)
      Sets the block hash.
      Parameters:
      blockHash - the block hash to set
      Returns:
      the builder instance
    • gasLimit

      public BlockOverrides.Builder gasLimit(Long gasLimit)
      Sets the gas limit.
      Parameters:
      gasLimit - the gas limit to set
      Returns:
      the builder instance
    • feeRecipient

      public BlockOverrides.Builder feeRecipient(org.hyperledger.besu.datatypes.Address feeRecipient)
      Sets the fee recipient.
      Parameters:
      feeRecipient - the fee recipient to set
      Returns:
      the builder instance
    • baseFeePerGas

      public BlockOverrides.Builder baseFeePerGas(org.hyperledger.besu.datatypes.Wei baseFeePerGas)
      Sets the base fee per gas.
      Parameters:
      baseFeePerGas - the base fee per gas to set
      Returns:
      the builder instance
    • blobBaseFee

      public BlockOverrides.Builder blobBaseFee(org.hyperledger.besu.datatypes.Wei blobBaseFee)
      Sets the blob base fee.
      Parameters:
      blobBaseFee - the blob base fee to set
      Returns:
      the builder instance
    • stateRoot

      public BlockOverrides.Builder stateRoot(org.hyperledger.besu.datatypes.Hash stateRoot)
      Sets the state root.
      Parameters:
      stateRoot - the state root to set
      Returns:
      the builder instance
    • difficulty

      public BlockOverrides.Builder difficulty(BigInteger difficulty)
      Sets the difficulty.
      Parameters:
      difficulty - the difficulty to set
      Returns:
      the builder instance
    • extraData

      public BlockOverrides.Builder extraData(org.apache.tuweni.bytes.Bytes extraData)
      Sets the extra data.
      Parameters:
      extraData - the extra data to set
      Returns:
      the builder instance
    • mixHashOrPrevRandao

      public BlockOverrides.Builder mixHashOrPrevRandao(org.apache.tuweni.bytes.Bytes32 mixHashOrPrevRandao)
      Sets the mix hash
      Parameters:
      mixHashOrPrevRandao - the mix hash
      Returns:
      the builder instance
    • blockHashLookup

      public BlockOverrides.Builder blockHashLookup(Function<Long, org.hyperledger.besu.datatypes.Hash> blockHashLookup)
      Sets the block hash lookup.
      Parameters:
      blockHashLookup - the block hash lookup to set
      Returns:
      the builder instance
    • parentBeaconBlockRoot

      public BlockOverrides.Builder parentBeaconBlockRoot(org.apache.tuweni.bytes.Bytes32 parentBeaconBlockRoot)
      Sets the parent beacon block root.
      Parameters:
      parentBeaconBlockRoot - the parent beacon block root to set
      Returns:
      the builder instance
    • build

      public BlockOverrides build()
      Builds a new BlockOverrides instance.
      Returns:
      the new BlockOverrides instance