Forget the pain of building your own consensus network from scratch. Celestia, the pioneering modular chain, empowers you to deploy high-performance rollups with on-demand security and consensus. Imagine a modular playground where your custom rollup, packed with innovative dApps, runs seamlessly on a dedicated base layer designed for continuous scalability.
Learn how to build and deploy your project easily using Celestia’s architecture and bring your developer’s vision to life with this step-by-step guide.
Modularity in Celestia
Celestia’s modularity enables efficient integration and customization of rollup functionalities without extensive modification of the core blockchain architecture.
Now, let’s explore what modularity means and how it connects with rollups. Celestia operates as a platform that connects different types of rollups in a modular stack. It creates a shared consensus and data availability layer for the ecosystem.
-
Data Availability Layer ensures secure storage and accessibility of transaction data.
-
Consensus Layer ensures that the stored data is valid by providing agreement among the parties involved.
These layers serve as your building blocks for creating customized rollups. These are independent applications that handle the following:
-
Application Logic: Define how your dApp functions and interacts with the blockchain network.
-
Transaction Processing: Offload computations from the mainnet, enhancing the overall network throughput.
Celestia enables developers to create highly scalable and customizable rollups by embracing modularity and introducing features such as Blobstream. Rollups generate transaction data and proofs stored on Celestia via Blobstream, ensuring data availability and verifiability.
Meanwhile, rollups process transactions and execute smart contracts autonomously, leveraging their own execution environments. This separation of data availability and execution facilitates scalability, flexibility, and enhanced security for rollups within the Celestia ecosystem.
Why Deploy on Celestia?
There are several compelling reasons to deploy your project on Celestia. Here are some key advantages:
-
Improved scalability: Offload computation to rollups and boost throughput while reducing fees.
-
Simplified development: Focus on building, not infrastructure. Pre-built frameworks like Rollkit and Astria get you coding faster.
-
Tailor-made rollups: Customize rollups specific to your needs, from smart contracts to high-frequency trading.
-
Enhanced interoperability: Break down blockchain silos, and communicate and transfer assets across diverse applications easily.
-
Future-proof foundation: Join a dynamic ecosystem at the forefront of blockchain innovation.
Celestia Projects Showcase
Let’s discover successful projects in Celestia Rollups-as-a-Service (RaaS) and Rollup Frameworks.
Rollups as a Service (RaaS)
To launch quickly and focus on coding:
-
Altlayer: streamlines Optimistic Rollup deployment and management, letting you build dApps faster – KlimaDAO, Optimism PBC.
-
Vistara: Pre-built modules and infrastructure simplify rollup deployment – Stargate Finance, Anchor Protocol.
-
Snapchain: Intuitive interface simplifies Optimistic Rollup management – Anchor Protocol, Stargate Finance.
Tailored solutions to meet advanced needs:
-
Eclipse: Build custom zk-Rollups precisely tuned for your project’s specific requirements, like high-frequency trading – Loopring.
-
Caldera: High-throughput architecture ideal for transaction batching and fraud detection – Loopring, dYdX.
Rollup Frameworks
Create your own blockchain.
-
Cosmos SDK: Create a sovereign blockchain using Celestia’s scalability for powerful DeFi applications – Persistence.
-
OP Stack: Leverage familiar Ethereum tools to build custom Optimistic Rollups, like Aavegotchi – Optimism PBC.
-
Rollkit: Pre-built templates and tools accelerate Optimistic Rollup development – Gravity Bridge, Nomad.
-
Sovereign SDK: Build and run your own custom zk-Rollup with full control – SushiSwap, dYdX.
-
Stackr: Infrastructure and tools simplify launching Optimistic Rollups – Optimism PBC, Synthetix.
-
Arbitrum Orbit: Launch your own custom chain permissionlessly.
-
Polygon CDK: (Coming soon) Integrate with the popular Polygon framework for seamless rollup development.
How to build a rollup with Dymension’s Roller: a step-by-step guide
Dymension’s Roller is designed to be developer-friendly, allowing you to quickly and easily enter Celestia’s modular multiverse. Let’s explore how to build efficient, scalable, and secure rollups with ease using this tool:
Step 1. Install Roller
-
Open a terminal and type in the command given below:
curl -L https://dymensionxyz.github.io/roller/install.sh | bash
-
After installing the Roller CLI tool, we will verify if we have installed the latest stable version:
roller version
-
Should output:
💈 Roller version <latest-version>
💈 Build time: <build-time>
💈 Git commit: <git-commit>
Step 2. Initialize Your Rollapp
This step creates the necessary files for starting a new RollApp, including the Genesis file, and stores them in the ~/.roller folder within your computer’s root directory. You have two options for initialization:
Option 1: Interactive Guide
Launch the interactive guide with the following command:
roller config init --interactive
The guide will prompt you to provide the following information:
-
Network: Select the desired network for your RollApp.
-
Execution Environment: Choose the preferred execution environment.
-
RollApp ID: Enter a unique identifier for your RollApp.
-
RollApp Denom: Specify the denom for your RollApp’s tokens.
-
Genesis Token Supply: Set the initial token supply for your RollApp.
-
Data Layer: Select the data layer you want to use.
Option 2: CLI Flags
Use the following command to initialize with flags:
roller config init <rollapp-id> <denom>
Where:
-
<rollapp-id> is a unique identifier for your RollApp.
-
<denom> is the symbol for your RollApp’s tokens.
-
[<optional_flags>] allows you to further customize your RollApp:
-
token-supply: Define the initial token supply (default: 1,000,000).
-
hub: Choose a specific hub (default: “default”).
-
da: Select a data availability layer (default: “in-memory”).
-
rollapp-binary: Specify the path to a custom RollApp binary.
-
vm-type: Define the virtual machine type (default: “default”).
-
Step 3. Register RollApp on Dymension Hub
This step establishes a namespace for your RollApp within the Dymension Hub, enabling a Sequencer to publish state updates on-chain and facilitating ecosystem bridging. Execute the following command:
roller tx register
Upon successful registration, you’ll receive the confirmation:
💈 Rollapp '<rollapp-id>' has been successfully registered on the hub.
Step 4. Run the RollApp
With the RollApp registered on the Dymension Hub, it’s time to start it up!
To start the RollApp, use the following command:
roller run
Enabling IBC channels can take up to an hour. You’ll initially see a “starting…” message, followed by an “active” status upon completion. IBC channels facilitate applications like token transfers from the RollApp to other ecosystems.
During the process, a status table will display information about the RollApp and IBC relayer, including:
-
Height: Latest RollApp block height
-
Hub: Latest RollApp block height published to the Dymension Hub
-
Ports:
-
8545: EVM RPC for publishing EVM smart contracts (if applicable)
-
26657: Node RPC for node requests
-
1317: Rest endpoint for node requests
-
-
Log File Path: Location of RollApp logs
With the RollApp now running and IBC-enabled, we’re ready to interact with it!
The Takeaway
You’ve explored the necessary steps to deploy your rollup on the Celestia mainnet, discovering the concept of modularity and its potential for creating high-performance, customized blockchain applications.
Celestia is not just a platform but also a launchpad for innovative blockchain solutions. Leverage modularity and your newfound knowledge, and become a part of this dynamic ecosystem. The next innovative application might just be your creation!
If you require any assistance or have any queries, contact our Celestia Blockchain Manager via X.
Stake with Everstake | Follow us on X | Connect with us on Discord