Skip to content

0xPlaygrounds/kg-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
Jan 21, 2025
Feb 5, 2025
Jan 29, 2025
Jan 29, 2025
Jan 15, 2025
Nov 28, 2024
Feb 5, 2025
Jan 29, 2025
Jan 11, 2025
Jan 29, 2025
Nov 28, 2024
Nov 28, 2024
Feb 4, 2025
Jan 8, 2025
Jan 8, 2025
Jan 9, 2025

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:

cargo run --bin sink -- \
    --reset-db \
    --neo4j-uri neo4j://localhost:7687 \
    --neo4j-user neo4j \
    --neo4j-pass neo4j
cargo run --bin api -- \
    --neo4j-uri neo4j://localhost:7687 \
    --neo4j-user neo4j \
    --neo4j-pass neo4j

GRC20 CLI

Coming soon™️