Skip to content

0xPlaygrounds/kg-node

Repository files navigation

GRC20 Neo4j Indexer

This repo contains a GRC20 indexer that uses Neo4j to store triple data.

Running the indexer

❗Important: Both methods require the SUBSTREAMS_ENDPOINT_URL (and optionally SUBSTREAMS_API_TOKEN if using a substreams provider with authentication) environment variables to be set.

With docker-compose

cd docker/
docker compose up

Without docker

1. Start Neo4j

docker run \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=./data:/data \
    --env=NEO4J_AUTH=none \
    neo4j

2. Compile and run the indexer

In a separate terminal, run the following commands:

CFLAGS='-std=gnu17' cargo run --release --bin sink -- \
    --no-versioning \
    --no-governance \
    --neo4j-uri neo4j://localhost:7687 \
    --neo4j-user neo4j \
    --neo4j-pass neo4j
CFLAGS='-std=gnu17' cargo run --bin api -- \
    --neo4j-uri neo4j://localhost:7687 \
    --neo4j-user neo4j \
    --neo4j-pass neo4j

Schema introspection

npx get-graphql-schema http://127.0.0.1:8080/graphql > api/schema.graphql

GRC20 CLI

Coming soon™️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages