Running the Rollups
After the minitiad
daemon is installed, either through compiling the source code or using the provided Docker container from the previous step, we can proceed to launch the rollup.
The minitaid CLI provides a utility launch command to simplify the initial setup sequences of rollup. It is designed to automate the process of setting up and configuring your rollup environment.
Preparing the Configuration File
The launch command allows customization of the rollup and related configurations and parameters through a config.json
file.
This specifies the configuration of the Initial L1 that the rollup will be connecting to.
Field | Description | Example |
---|---|---|
chain_id | the chain ID of the L1 to connect to | initiation-2 |
rpc_url | The Initia L1 RPC URL to use when sending transactions. | https://initia-testnet-rpc.polkachu.com:443 |
gas_prices | The minimum gas prices and gas denom | 0.15uinit |
Example:
Examples of the minimal and full config.json
file content can be found here.
Funding System Keys: Before launching, we must fund the Bridge Executor, Output Submitter, and Batch Submitter accounts with gas tokens on Initia L1 to enable them to send transactions.
Launching the Rollup
Once we have a config file ready and the accounts funded, we can proceed to the launch process.
If you did not specify the bridge executor mnemonic and address in the config.json file, the launch command will prompt you for this information during the setup process.
If the launch is successful, you should get an output similar to the one below:
Once the launch steps successfully completes, two artifact files will be generated in the directory $HOME/.minitia/artifacts
config.json
: The complete config file. Any previously omitted fields have been filled with default or automatically generated values.artifacts.json
: Stores the output artifact from the launch process
Starting the Rollup
Once the bootstrapping launch step is complete, we can now start running our rollup.
This process will begin running the rollup and producing blocks.
Conclusion
With these steps complete, your rollup is now ready for testing and development. To continue setting up the OPinit bridge and bots, enable IBC transfers, and enabling oracles, follow the subsequent instructions in this section.
Was this page helpful?