Home of the following services:
In order to build from source you’ll need at least Go 1.16+.
# need to clone if you plan to run tests, and use Makefile
$ git clone [email protected]:InjectiveLabs/injective-core.git
$ cd injective-core
$ make install
# or simply do this to fetch modules and build executables
$ go install github.com/InjectiveLabs/injective-core/cmd/...The most convenient way to launch services is by running the setup script:
$ ./setup.shThen run an instance of the injectived node.
$ ./injectived.shVoila! You have now successfully setup a full node on the Injective Chain.
Note: for any mention of ZSH, replace it with Bash if applicable. for example, ~/.bashrc
-
Build from source
git clone https://github.com/OpenDeFiFoundation/injective-core.git cd injective-core make install -
Update
.zshrc- Add these lines to your~/.zshrcfile:export GOPATH=$HOME/go export PATH=$PATH:$(go env GOPATH)/bin
-
Refresh your
~/.zshrcfilesource ~/.zshrc
-
Test to make sure its working
injectived version
$ cd docs && yarn && yarn run serveFirst, ensure that the Enable and Swagger values are true in APIConfig set in cmd/injectived/config/config.go.
Then simply run the following command to auto-generate the Swagger UI docs.
$ make proto-swagger-genThen when you start the Injective Daemon, simply navigate to http://localhost:10337/swagger/.
$ make genThen when you start the Injective Daemon, simply navigate to http://localhost:10337/swagger/.
To run all unit tests:
$ go test ./injective-chain/...