MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.87k stars 846 forks source link

Question #267

Closed lismore closed 7 years ago

lismore commented 7 years ago

Hi,

I have used your NBitcoin Library followed a few examples and seen some progress.

image

I am a little confused now, is this application now some how syncing to the blockchain like Bitcoin Core or is it using some other way to get data of the blockchain.

Do I need to run my own full bitcoin core node now with an RPC interface to work with this library.

Thanks Patrick

NicolasDorier commented 7 years ago

If you use QBitNinja then you depends on a block explorer. This has some risk because you depends on how available it is, on its own interpretation of consensus, and leak your own privacy to it.

The advantage is that you don't need a bitcoin core node running, and you can query way more stuff than you can with bitcoin core, and you don't need to worry about having a sync node.

You can connect to your own Bitcoin Core node with NBitcoin with the RPCClient class.

I advise you to depends on Bitcoin Core for the most you can, and if you find out that Bitcoin Core is not enough for you, then you should host your own Block Explorer. (QBitNinja is open source, but must be hosted on Microsoft Azure)

The reason I wrote my book using QBitNinja is that it is easier to get started and easier to understand bitcoin than going into the nitty gritty of the RPC interface.

lismore commented 7 years ago

Got it, thanks