MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

Question: Is init phase required? #91

Closed alexb5dh closed 5 years ago

alexb5dh commented 5 years ago

For project I'm working right now I'm interested only in transactions happening after project is launched/released. Do I need to wait for initial indexing in this case? Or maybe just waiting for bitcoind to sync would be enough and than I can proceed directly to listening?

NicolasDorier commented 5 years ago

yeah you need full indexing, the init phase is needed on top of Bitcoind sync. I advise you using blockstream esplora instead of QBitNinja. They are easier to deploy but require more disk space.

alexb5dh commented 5 years ago

Thanks for the reply.

Unfortunately, esplora doesn't seem to have anything similar to QBitNinja wallets. I need it to quickly find balance of multiple addresses. It also doesn't have an existing .NET client which is a minus. For now QBitNinja seems like a best fit.

NicolasDorier commented 5 years ago

@alexb5dh the wallet API is not very well tested to be honest. If you only want HD wallet and not a full explorer, I advise you to look https://github.com/dgarage/NBXplorer . It has a very simple API, does not require full indexing, and work on pruned mode. I am using it for BTCPay Server so it is pretty solid.

This is possible because NBXplorer:

  1. Track only what you tell it to track and ignore the rest
  2. Do not attempt to rescan the history (but there is some rescan feature for at least restoring the balance of a wallet after importing it)

The down side of NBXplorer is that it is not meant to be exposed on the web.

alexb5dh commented 5 years ago

NBXplorer seems like the tool I was looking for. Thank you for the help and for supporting these libraries!