Interface BlockBody
public interface BlockBody
The parts of a Block not in the
BlockHeader, information corresponding to the comprised
transactions in getTransactions(), and a set of other block headers in getOmmers(), as defined in the Ethereum Yellow Paper.-
Method Summary
Modifier and TypeMethodDescriptionList<? extends BlockHeader> Returns the list of ommers of the block.List<? extends org.hyperledger.besu.datatypes.Transaction> Returns the list of transactions of the block.Optional<? extends List<? extends Withdrawal>> Returns the list of withdrawals of the block.
-
Method Details
-
getTransactions
List<? extends org.hyperledger.besu.datatypes.Transaction> getTransactions()Returns the list of transactions of the block.- Returns:
- The list of transactions of the block.
-
getOmmers
List<? extends BlockHeader> getOmmers()Returns the list of ommers of the block.- Returns:
- The list of ommers of the block.
-
getWithdrawals
Optional<? extends List<? extends Withdrawal>> getWithdrawals()Returns the list of withdrawals of the block.- Returns:
- The list of withdrawals of the block.
-