Skip to content

How to Turn Your CometBFT App into a Rollkit App

This guide will walk you through the process of turning your existing CometBFT app into a Rollkit app. By integrating Rollkit into your CometBFT-based blockchain, you can leverage enhanced modularity and data availability features.

This guide assumes you have a CometBFT app set up and Ignite CLI installed.

Install Rollkit

You need to install Rollkit in your CometBFT app. Open a terminal in the directory where your app is located and run the following command:

bash
ignite app install github.com/ignite/apps/rollkit@rollkit/v0.2.1

Add Rollkit Features to Your CometBFT App

Now that Rollkit is installed, you can add Rollkit features to your existing blockchain app. Run the following command to integrate Rollkit:

bash
ignite rollkit add

Initialize Rollkit

To prepare your app for Rollkit, you'll need to initialize it.

Run the following command to initialize Rollkit:

bash
ignite rollkit init

Initialize Rollkit CLI Configuration

Next, you'll need to initialize the Rollkit CLI configuration by generating the rollkit.toml file. This file is crucial for Rollkit to understand the structure of your rollup.

To create the rollkit.toml configuration, use this command:

bash
rollkit toml init

This command sets up the rollkit.toml file, where you can further customize configuration parameters as needed.

Start Your Rollkit App

Once everything is configured, you can start your Rollkit-enabled CometBFT app or (simply rollkit app). Use the following command to start your blockchain:

bash
rollkit start --rollkit.aggregator <insert your flags>

Summary

By following this guide, you've successfully converted your CometBFT app into a Rollkit app.

To learn more about how to config your DA, Sequencing, and Execution, please check out those tutorial sections.

Released under the APACHE-2.0 License