Run locally

Run a single-node blockchain locally

Download the binary

curl -s https://get.nibiru.fi/@v2.1.0 | bash

You can check https://github.com/NibiruChain/nibiru/releases for the latest release version.

[Optional] Remove old local state

Only required if you have pre-existing state in your ~/.nibid folder (if you've run a local chain before).

nibid tendermint unsafe-reset-all
rm ~/.nibid/config/genesis.json
rm -rf ~/.nibid/config/gentx/

Initialize the config files

CHAIN=nibiru-localnet-0

nibid init $CHAIN --chain-id=$CHAIN

nibid config chain-id $CHAIN && \
nibid config broadcast-mode sync && \
nibid config node "http://localhost:26657" && \
nibid config keyring-backend test && \
nibid config output json

[Optional] Create a wallet

Option 1: Create a new mnemonic

Creates a new address in your local keyring

Option 2: Import an existing mnemonic

You can input the following mnemonic:

Configure the genesis state

We require some custom genesis state to be set in order for the chain to start.

Start the chain

Last updated

Was this helpful?