private Optional<Long> getEndBlock() {
      return Optional.ofNullable(endBlock);
    }
blocks export sub-command

<p>Export a block list from storage
app/src/main/java/org/hyperledger/besu/cli/subcommands/blocks/BlocksSubCommand.java