Install Golang
Clone and Build Initia
initiad
is not found, run go env
and check if $GOBIN
or $GOPATH/bin
directories are included in $PATH.ulimit -n
command, and root /etc/security/limits.conf
file can be modified to change this parameter. By adding the below to limits.conf
the maximum for all accounts can be increased to 65535. To only modify the number for the account running Initia, enter the account name instead of *
.
${HOME}/.initia
. To set a different directory, add --home <YOUR_INITIA_HOME>
option on each command and use a different directory as Initia’s HOME directory.
Initialization
${HOME}/.initia/config/priv_validator_key.json
.Setting Endpoints
Type | Config File Name | Item |
---|---|---|
REST | ~/.initia/config/app.toml | api.enable : Enable / disable LCD |
api.swagger : Enable / disable swagger | ||
api.address : Listen address for LCD | ||
gRPC/gRPC-WEB | ~/.initia/config/app.toml | grpc.enable : Enable / disable GRPC |
grpc.address : Listen address for GRPC | ||
grpc-web.enable : Enable / disable GRPC-WEB | ||
grpc-web.address : Listen address for GRPC-WEB | ||
RPC | ~/.initia/config/config.toml | rpc.laddr : Listen address for RPC |
P2P | ~/.initia/config/config.toml | p2p.laddr : Listen address for P2P |
~/.initia/config/app.toml
~/.initia/config/config.toml
Set up External Address
Run Initia
initiad
as a blockchain node, the node has to fetch genesis block information and be set to communicate with other nodes.Refer to Connect to Initia Network section for more information.The below section is optional, but contains information on how to register the Initia daemon to the service to make it easier to run and manage. Note that this can help you run smoothly.Registering Initia as a Service (Optional)
/etc/systemd/system/initiad.service
as root
permission and enter the below information:initiad
(Below example: ubuntu)initiad
is installed + start
(Below example: /user/bin initiad start
)systemctl start initiad
systemctl stop initiad
/etc/systemd/system/initiad.service
, run the below command line. This might require root
permission, and to apply changes to a running node, a restart is required.genesis.json
, you can use the below command line:
addrbook.json
file of a node that is already operational.
p2p.persistent_peers
in the ~/.initia/config/config.toml
file.
The below is an example:
Provider | URL |
---|---|
Polkachu | https://polkachu.com/testnets/initia/snapshots |
bwarelabs | https://bwarelabs.com/snapshots/initia |
addrbook.json
to $INITIA_HOME/config/addrbook.json
for fast peer connection.