Interface WorldStateService
- All Superinterfaces:
BesuService
A service that plugin can use to access world state
-
Method Summary
Modifier and TypeMethodDescriptionorg.hyperledger.besu.evm.worldstate.WorldViewReturns a view of the head world state.Optional<org.hyperledger.besu.evm.worldstate.WorldView> getWorldView(org.hyperledger.besu.datatypes.Hash blockHash) Returns a view of the world state at the specified block header.
-
Method Details
-
getWorldView
org.hyperledger.besu.evm.worldstate.WorldView getWorldView()Returns a view of the head world state.- Returns:
- the head world view
-
getWorldView
Optional<org.hyperledger.besu.evm.worldstate.WorldView> getWorldView(org.hyperledger.besu.datatypes.Hash blockHash) Returns a view of the world state at the specified block header.- Parameters:
blockHash- the block header to get the world view for- Returns:
- the world view at the specified block header
-