Simple Minitia Setup
Minita is a lightweight, open-sourced, and easy-to-use blockchain client. This document provides instructions for installing Minita on your local machine.
Prerequisites
Step 1. Download Pre-built Binary
You can setup Minitia chain using minitiad.
git clone https://github.com/initia-labs/minitia.gitYou can choose to use MoveVM or WasmVM by using minimove or miniwasm respectively.
cd minimove
git pull origin main
make installTo confirm the successful installation of Minitia, use the following command:
minitiad versionStep 2. Configuration
Initiate your chain
Initialize the node with a human-readable name or moniker.
You can configure a custom token denom as a fee token on a Minitia, but if a custom token is not specified, the default value umin will be used as the fee token denom.
CHAIN ID
A chain ID is a unique identifier that represents a blockchain network. The format should be an alphanumeric string between 3 to 50 characters long ( ^[-a-zA-Z0-9]{3,47}-\d+$).
Generate operation keys
If you don't have a key, use the following command to generate a new key.
Add genesis validator
You can add genesis validator with following command.
Add genesis account
Step 3. Start Minitia
Start minitia node.
For detail configuration and usage, check nodes. You will get useful links as follows:
http://localhost:26657 for RPC
http://localhost:1317 for REST API Server (LCD)
http://localhost:1317/swagger/ for Swagger
grpc://localhost:9090 for GRPC
(Optional) Change min-gas-prices
To prevent spam and ensure network stability, a operator need to set a min-gas-prices which the validators will accept to validate transactions in Minitia nodes.
Change
min-gas-pricesingenesis.jsonBy default,
min-gas-pricesis set to 0, and can be changed ongenesis.jsonbefore the node starts running.
This task must be completed before the node starts running.
Update
min-gas-pricesMsgUpdateParamsmessage can be used to updatemin-gas-pricesafter the node starts running. With this message, gas fee token denom can be changed to a desired denom.
Only the currently configured gas-price can be used to pay transaction fees before modifying the gas-prices parameter.
(Optional) Start the Light Client Daemon (LCD)
To enable the REST API and LCD, enable api configuration in app.toml. Also, to enable Swagger, change swagger = false to swagger = true. Note that app.toml file can be found in $HOME/.minitia/config by default.
Last updated