Skip to content

How to Use Ignite to Create a Rollkit App

This guide will walk you through the process of using Ignite to create a Rollkit app.

Install Ignite

You can read more about Ignite here.

To install Ignite, you can run this command in your terminal:

bash
curl https://get.ignite.com/cli@v28.5.3! | bash

Once Ignite is installed, scaffold a new blockchain with the following command:

bash
ignite scaffold chain gm --address-prefix gm --minimal --skip-proto

This will create the gm blockchain. Navigate to the blockchain directory:

bash
cd gm

Run a local Data Availability (DA) node

First, set up a local data availability network node:

bash
cd $HOME && curl -sSL https://rollkit.dev/install-local-da.sh | sh -s v0.3.1

This script builds and runs a DA node, which will listen on port 7980.

Install Ignite App Rollkit

In a new terminal window, you'll now install and run the Ignite App Rollkit.

Run the following command to install the Rollkit App:

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

This installs the Rollkit application, which will be integrated into your blockchain.

Add Rollkit Features

Enhance your blockchain by adding Rollkit features. Use the following command:

bash
ignite rollkit add

Initialize Your Blockchain

Before starting your blockchain, you need to initialize it with Rollkit support. Initialize the blockchain with Local DA as follows:

bash
ignite rollkit init --local-da

Initialize Rollkit CLI Configuration

To initialize the Rollkit CLI configuration, generate the rollkit.toml file by running the following command:

bash
rollkit toml init

This will set up the Rollkit configuration file rollkit.toml, allowing you to use the Rollkit CLI for managing and running your blockchain.

Start Your Rollup

Finally, start your rollup (blockchain) using the following command:

bash
rollkit start --rollkit.aggregator --rollkit.da_address http://localhost:7980

Your rollkit app is now up and running.

Summary

By following these steps, you've successfully installed Ignite, set up Local DA, integrated Rollkit features into your blockchain, and configured the Rollkit CLI.

Released under the APACHE-2.0 License