7

Do I need to host my own continuous instance of horizon pointed to a DB that I control in order to execute a query like:

SELECT SUM(balance) FROM accounts WHERE inflationdest = {inflation_destination}

I currently have a console app running an operation stream on the .net core SDK and would like to be able to execute that query from inside of it. Trying to figure out what I would need to do to make that happen.

  • 1
    If you do build this please let us know. I'd love to use something like this. Thanks! – AGitzes Jan 27 '18 at 22:34
  • You could use Fed.network's inflation HTTP API for this specific purpose: https://fed.network/inflation/<account id>. – user25 Feb 1 '18 at 17:12
6

First of all, you rather need the core db instead of horizon for your query. There is no publicly available core DB and I doubt that ever will be, due to unpredictable loading and security implications.

You have to set up your own Stellar Core node. It doesn't need to be a validator node. That way you'll have access to the relevant and 100% genuine network information.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.