Deploying a Standalone Minitia

Overview

Minitias can be run as a standalone rollup chain. While we strongly recommend the full setup using OPInit bots and IBC as outlined above, this setup can be useful for developers who want to quickly test the core Minitias functionality and deploy contracts on top of it.

Setting up the minitia

Before we configure the minitia, choose and enter the chain ID that you'd like to use for your minitia.

This is a unique identifier for your blockchain that is used to identify the network, prevent cross-chain transaction replay attacks, idenfiy genesis files, amongst other things.

export $CHAIN_ID=minitia

Then, run the following command to initialize the Minitia. This includes the operator/sequencer, Minitia genesis, and configuration files.

minitiad init operator --chain-id testnet

Next, we need to create a key that'll be used as the minitia's operator (aka. sequencer, validator)

minitiad keys add operator

The above command will create a key for you and and save it to your device's keyring. We recommend writing down the mnemonic somewhere safe as there is no way to show it again.

Once the key is ready, we proceed to modify the minitia's genesis file in 2 ways:

  1. give initial gas token balances to the operator account.

  2. add the operator account as the minitia's sequencer

Create additional accounts and customize the balance amounts as desired

minitiad genesis add-genesis-account operator 10000000000umin
minitiad genesis add-genesis-validator operator

Finally, we now start and run the minitia:

minitiad start

Endpoints

Along with the minitia, the following endpoints are also available

  • RPC: http://localhost:26657

  • REST API: http://localhost:1317

Last updated

Logo

© 2024 Initia Foundation, All rights reserved.