public Optional<Hash> getStateRoot() {
    return stateRoot;
  }
Gets the state root.

@return the state root
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/provider/WorldStateQueryParams.java