Granola-Team / mina-indexer

The Mina Indexer is a re-imagined version of the software collectively called the "Mina archive node."
Apache License 2.0
18 stars 10 forks source link

Question: What is the easiest way to start streaming data to the indexer? #360

Closed FilipHarald closed 8 months ago

FilipHarald commented 8 months ago

I struggled to find any documentation about this in the repo. But how do I start listening to the block-data stream? I can find in the Mina-docs that it is rather a configuration of the mina daemon in order to stream the data.

  1. Start the mina daemon and connect it to the archive process that you started on port 3086:
    mina daemon \
    .....
    --archive-address 3086\

But I can't see that the mina indexer process exposes any ports?

trevorbernard commented 8 months ago

Hi @FilipHarald, we don't need a connection to the mina daemon to get blocks-- we solely rely on processing precomputed blocks.

As part of the startup process, we tell the mina-indexer binary to look watch directories for precomputed blocks. Are you on the Mina Protocol discord?

FilipHarald commented 8 months ago

@trevorbernard oh I see. Yes I'm "quiq" on their Discord

trevorbernard commented 8 months ago

It isn't immediately obvious how to start and run the indexer from the README. This issue will track the progress of the README improvements: https://github.com/Granola-Team/mina-indexer/issues/365

FilipHarald commented 8 months ago

@trevorbernard I think you meant this issue? #365

trevorbernard commented 8 months ago

@trevorbernard I think you meant this issue? #365

Yes, you are right!