Is there a way to scan the Bitcoin blockchain in C# without using an external API? I am looking for the amount of spendable money of a Bitcoin address.
I am using NBitcoin.
// create new key pair based on private key
NBitcoin.Key key = new NBitcoin.Key(privateKey, privateKey.Length, false);
// parse blk*.dat
// get balance for address key.PubKey.Hash
// How to do that?