Minita is a lightweight, open-sourced, and easy-to-use blockchain client. This document provides instructions for installing Minita on your local machine.
You can choose to use MoveVM or WasmVM by using minimove or miniwasm respectively.
cdminimovegitpulloriginmainmakeinstall
To confirm the successful installation of Minitia, use the following command:
minitiad version
Step 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.
Update bridge executor
Bridge executor is a address which has permission to relay the op bridge packet between L1<>L2. Please refer OPinit Stack for details.
Bridge executor's address is set to the account address of the validatory key that is used to do Add genesis validator. The below command can be used to use a different account address as a bridge executor.
Add genesis account
Step 3. Start Minitia
Start minitia node.
For detail configuration and usage, check nodes. You will get useful links as follows:
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-prices in genesis.json
By default, min-gas-prices is set to 0, and can be changed on genesis.json before the node starts running.
This task must be completed before the node starts running.
Update min-gas-prices
MsgUpdateParams message can be used to update min-gas-prices after 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.
# fill [bridge-executor] to your address
sed -i -e \
"s/\"bridge_executor\": \"[a-zA-Z0-9]*\",$/\"bridge_executor\": \"$(minitiad keys show $BRIDGE_EXECUTOR -a)\",/g" \
~/.minitia/config/genesis.json
[api]
# Enable defines if the API server should be enabled.
enable = true
# Swagger defines if swagger documentation should automatically be registered.
swagger = true