After the minitiad is functional, either through compiling the source code or using the provided Docker container from the previous step, we can proceed to launch the minitia.
The minitaid CLI provides a utility launch command to simplify the initial setup sequences of minitia. It is designed to automate the process of setting up and configuring your minitia environment.
Preparing the Configuration File
The launch command allows customization of the minitia and related configurations and parameters through a config.json file.
This specifies the configuration of the Initial L1 that the minitia 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.
The system keys define the address and mnemonic pairs that will be used for the the minitia's main operations. These includes
Validator
Bridge Executor
Output Submitter
Batch Submitter
Challenger
Example
"system_keys": {"validator": {"address":"init12z54lfqgp7zapzuuk2m4h6mjz84qzca8j0wm4x","mnemonic":"digital kingdom slim fall cereal aspect expose trade once antique treat spatial unfair trip silver diesel other friend invest valve human blouse decrease salt" },"bridge_executor": {"address":"init13skjgs2x96c4sk9mfkfdzjywm75l6wy63j5gyn","mnemonic":"junk aunt group member rebel dinosaur will trial jacket core club obscure morning unit fame round render napkin boy chest same patrol twelve medal" },"output_submitter": {"address":"init1f4lu0ze9c7zegrrjfpymjvztucqz48z3cy8p5f" },"batch_submitter": {"address":"init1hqv5xqt7lckdj9p5kfp2q5auc5z37p2vyt4d72" },"challenger": {"address":"init1gn0yjtcma92y27c0z84ratxf6juy69lpln6u88" } },
These specifies accounts that will be created during genesis. By default, these will be the addresses corresponding to each of the system keys. But other accounts can also be added and given token balances at genesis.
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 Minitia
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 IDminitiadlaunch $L1_CHAIN_ID --with-configconfig.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:
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 Minitia
Once the bootstrapping launch step is complete, we can now start running our minitia.
minitiadstart
This process will begin running the minitia and producing blocks.
Conclusion
With these steps complete, your minitia 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.