Interface WorldStateService
- All Superinterfaces:
org.hyperledger.besu.plugin.services.BesuService
public interface WorldStateService
extends org.hyperledger.besu.plugin.services.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 hash.
-
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 hash.- Parameters:
blockHash- the hash of the block to get the world view for- Returns:
- the world view at the specified block hash
-