Skip to main content

Install Injectived

injectived is the command-line interface and daemon that connects to Injective and enables you to interact with the Injective blockchain. Injective core is the official Golang reference implementation of the Injective node software.

Requirements

  • Golang v1.16.1 - go1.17.1 linux/amd64
  • Ensure your GOPATH and GOBIN environment variables are set up correctly.
  • Linux users: install build-essential.
  • 8 vCPU (4 physical core), x86_64 architecture processor
  • 64 GB RAM (or equivalent swap file set up)
  • 1 TB of storage space

Option 1: From binary

The easiest way to install injectived and Injective core is by downloading a pre-built binary for your operating system. Download the most recent Injective Chain binaries from the official injective-chain-releases repo.

# Make sure to check the releases repo for the most recent version!
wget https://github.com/InjectiveLabs/injective-chain-releases/releases/download/v1.10.0-1679065799/linux-amd64.zip

This zip file will contain three binaries and a virtual machine:

  • injectived - the Injective Chain daemon
  • peggo - the Injective Chain ERC-20 bridge relayer daemon
  • injective-exchange - the Injective Exchange daemon
  • libwasmvm.x86_64.so - the wasm virtual machine which is needed to execute smart contracts.

Unzip and add injectived, injective-exchange and peggo to your /usr/bin. Also add libwasmvm.x86_64.so to user library path /usr/lib.

unzip linux-amd64.zip
sudo mv injectived peggo injective-exchange /usr/bin
sudo mv libwasmvm.x86_64.so /usr/lib

Check your binary version by running following commands.

injectived version
peggo version
injective-exchange version

Confirm your version matches the output below

injectived version
Version dev (f32e524)

peggo version
Version dev (b5c188c)

injective-exchange version
Version dev (ca1da5e)

Option 2: From source

Note: you will only install injectived but not injective-exchange, peggo or libwasmvm.x86_64.so using this option.

Get the Injective core source code

Use git to retrieve Injective core.

Clone the injective repo:

git clone https://github.com/OpenDeFiFoundation/injective-core

Build Injective core from source

Build Injective core, and install the injectived executable to your GOPATH environment variable.

cd injective-core
make install

Verify your Injective core installation

Verify that Injective core is installed correctly.

injectived version