private void exportRlpFormat(final BesuController controller) throws IOException {
      final ProtocolContext context = controller.getProtocolContext();
      final RlpBlockExporter exporter =
          parentCommand.rlpBlockExporterFactory.apply(context.getBlockchain());
      exporter.exportBlocks(blocksExportFile, getStartBlock(), getEndBlock());
    }
blocks export sub-command

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