public Builder withBlockHeader(final BlockHeader blockHeader) {
      this.blockHeader = blockHeader;
      this.blockHash = blockHeader.getBlockHash();
      this.stateRoot = Optional.of(blockHeader.getStateRoot());
      return this;
    }
Sets the block header.

@param blockHeader the block header
@return the builder
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/provider/WorldStateQueryParams.java