Running the Minitia

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.

gas_prices

The minimum gas prices and gas denom

0.15uinit

Example

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

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 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 Minitia

Once the bootstrapping launch step is complete, we can now start running our minitia.

minitiad start

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.

Last updated

Logo

© 2024 Initia Foundation, All rights reserved.