MCPcopy Index your code
hub / github.com/InjectiveFoundation/injective-core

github.com/InjectiveFoundation/injective-core @v1.20.1-1782532109

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.20.1-1782532109 ↗ · + Follow
47,876 symbols 112,790 edges 986 files 6,893 documented · 14% updated 7d agov1.20.1-beta-1782384029 · 2026-06-25★ 619 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Injective-Core codecov

Banner!

Home of the following services:

Architecture

architecture.png

Installation

Building from sources

In order to build from source you’ll need Go 1.26.4.

# need to clone if you plan to run tests, and use Makefile
$ git clone git@github.com: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/...

Quick Setup

The most convenient way to launch services is by running the setup script:

$ ./setup.sh

Then run an instance of the injectived node.

$ ./injectived.sh

Voila! You have now successfully setup a full node on the Injective Chain.

Generating REST and gRPC Gateway docs

First, 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-gen

Then when you start the Injective Daemon, simply navigate to http://localhost:10337/swagger/.

Generating Injective Chain API gRPC Typescript bindings

$ make gen

Then when you start the Injective Daemon, simply navigate to http://localhost:10337/swagger/.

Maintenance

To run all unit tests:

$ go test ./injective-chain/...

Codex Review Workflow

The Codex Code Review GitHub Action can be triggered manually with a PR ID.

UI steps: - Go to Actions > Codex Code Review > Run workflow - Enter pr_number and run

CLI example (requires gh):

$ gh workflow run codex-review.yml -f pr_number=1234

License

Injective Core is licensed under the Injective Labs License.

Certain code in evm and erc20 modules is licensed under the LGPLv3.

Except code from from evm/precompiles which is also is licensed under the Injective Labs License.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 32,942
Function 9,742
Class 2,449
Struct 2,414
Interface 204
TypeAlias 90
FuncType 31
Enum 4

Languages

Go77%
TypeScript23%
Rust1%

Modules by API surface

client/docs/swagger-ui/swagger-ui-es-bundle.js4,347 symbols
client/docs/swagger-ui/swagger-ui-bundle.js4,347 symbols
injective-chain/modules/exchange/types/v2/query.pb.go2,889 symbols
injective-chain/modules/exchange/types/query.pb.go2,717 symbols
injective-chain/modules/exchange/types/v2/tx.pb.go2,242 symbols
injective-chain/modules/exchange/types/tx.pb.go1,410 symbols
client/docs/swagger-ui/swagger-ui-es-bundle-core.js1,114 symbols
injective-chain/modules/exchange/types/exchange.pb.go980 symbols
client/docs/swagger-ui/swagger-ui.js928 symbols
injective-chain/modules/exchange/types/v2/events.pb.go871 symbols
injective-chain/modules/oracle/types/query.pb.go797 symbols
injective-chain/modules/peggy/types/query.pb.go790 symbols

Datastores touched

graph-nodeDatabase · 1 repos

For agents

$ claude mcp add injective-core \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page