No description
Find a file
2025-08-31 15:59:48 -04:00
lnd add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
memgraph add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
routes add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
static add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
.env-example update readme and env example 2025-08-31 15:59:48 -04:00
.gitignore add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
describegraph.json add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
docker-compose.yml add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
Dockerfile add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
go.mod initial commit 2024-02-15 22:58:19 -05:00
go.sum initial commit 2024-02-15 22:58:19 -05:00
index.html add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
main.go add local snapshot to repo; add Dockerfile; update docker-compose.yml; 2025-08-31 15:56:34 -04:00
README.md update readme and env example 2025-08-31 15:59:48 -04:00

ln-stream

Stream graph updates from LND into Memgraph.

Setup and Installation

This guide assumes that you already have Go and Memgraph Lab installed. To get started, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://git.lyberry.com/v/ln-stream.git
    cd ln-stream
    
  2. Initialize the Go module and download dependencies:

    go mod tidy
    
  3. Configure the environment variables:

    • Copy the example file .env-example to .env:

      cp .env-example .env
      
    • Open the .env file and populate it with the relevant values:

      NEO4J_HOST=localhost  
      NEO4J_PORT=7687  
      NEO4J_USERNAME=
      NEO4J_PASSWORD=
      LND_ADDRESS=<HOST>:10009
      LND_NETWORK=mainnet
      LND_MACAROON_PATH=/path/to/readonly.macaroon
      LND_TLS_CERT_PATH=/path/to/tls.cert
      
  4. Start Memgraph using Docker Compose:

    docker compose up
    
  5. Start the Control Panel:

    go run main.go
    

From here, you should have an instance of memgraph up receiving updates from LND. There is also a control panel running at http://localhost:8080 that lets you pause graph updates and reset the graph.