Setup and Installation
enid CLI
enid is a command-line tool for interacting with the ENI blockchain. This page will guide you through setting up Enid and introduce some basic commands to help you get started.
Prerequisites
Go 1.24+: Installation instructions can be found here.
Installation
To install enid, first find the version you wish to use here, then run the following commands:
git clone https://github.com/eni-chain/go-eni.git
cd go-eni
git checkout main
make installYou can verify that enid is installed correctly by running:
enid versionIf you encounter an error like command not found: enid, you may need to set the GOPATH environment variable.
Use
go env GOPATHto find yourGOPATHAdd the following lines to your
~/.bashrcor~/.zshrc:export GOPATH=[GOPATH obtained from step 1] export PATH=$PATH:$GOPATH/bin
More information can be found here.
Commands
enid supports all the commands necessary for interacting with the chain. To see a list of available commands and their descriptions, run enid:
Adding a Wallet
You can create a new wallet using the enid keys command:
Replace $NAME with the name you want to use for this key. This will generate a mnemonic phrase and store the account in the CLI for use. Write down this mnemonic phrase and store it securely.
Alternatively, if you want to import an existing mnemonic phrase, you can add the --recover flag:
You will then be prompted to enter the mnemonic phrase.
If importing from an EVM wallet like MetaMask, you may need to specify the coin type. Ethereum-based (EVM) wallets use coin type 60, while Eni defaults to 118. For example,
This will generate an address different from the default coin type 118.
To view your local wallets, you can run
to see a list of all added wallets, or run
to view details of a specific wallet.
Last updated