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.

FieldDescriptionExample
chain_idthe chain ID of the L1 to connect toinitiation-2
rpc_urlThe Initia L1 RPC URL to use when sending transactions.https://initia-testnet-rpc.polkachu.com:443
gas_pricesThe minimum gas prices and gas denom0.15uinit

Example:

"l1_config": {
  "chain_id": "initiation-2",
  "rpc_url": "https://initia-testnet-rpc.polkachu.com:443",
  "gas_prices": "0.15move/944f8dd8dc49f96c25fea9849f16436dcfa6d564eec802f3ef7f8bfbe5c16dbd"
}

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.

export L1_CHAIN_ID=initiation-2 # replace with the desired Initia L1 chain ID
minitiad launch $L1_CHAIN_ID --with-config config.json

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:

############################################
Artifact written to
* /Users/initia/.minitia/artifacts/config.json
* /Users/initia/.minitia/artifacts/artifact.json

{
 "BRIDGE_ID": "70",
 "EXECUTOR_L1_MONITOR_HEIGHT": "1370793",
 "EXECUTOR_L2_MONITOR_HEIGHT": "49"
}

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.

minitiad start

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.