Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes

C# parse bitcoin blockchain to get balance of an address

How about running a QBitNinja server locally? var client = new QBitNinjaClient(baseAddress:"specify host here, you probably want localhost", Network.TestNet); var balanceModel = client.GetBalance(...
nopara73's user avatar
  • 826
4 votes
Accepted

C# library for exploring Bitcoin Cash blockchain

Since "Bitcoin Cash" is a fork of Bitcoin Core, you should be able to use the BitcoinLib C# Library to interact with a Bitcoin Cash node.
Eric Allam's user avatar
3 votes

C# code for Bitcoin Cash address conversion between legacy and new format

Just found a SharpCashAddr library. Has pure C# implementation of address conversion in both ways.
Igor Yalovoy's user avatar
3 votes

Blockchain Explorer for local full node

You could check https://github.com/Blockstream/esplora I think it ticks all of the boxes, I am not sure about the NBitcoin though.
Tony Sanak's user avatar
  • 1,689
3 votes

Is the generated Public Key from Private Key Unique in Bitcoin?

The base58 number 16w4zZWjWnhfEasJcSbfDQeHJRk1LytPHF5ir1ZS9mtUD5adsdH is a base58Check encoding of the (compressed) public key: 030d4018f164d58e41e0c5fb99eb5ec26b4f21fc8ad0db726d51a7cce60c75df0a ...
Sven Williamson's user avatar
2 votes

How to get the bitcoin balance of a public key in C#?

If you are ok with a third party service check out the Blockchain API. They have a C# library and it's fairly easy to use. If you need only the balance of an address you can use the code below as ...
Andras's user avatar
  • 121
2 votes

How to determine if transaction is going to propagate?

Verify() verifies if the transaction is properly signed. Since Verify() doesn't really tell us if a transaction will successfully propagate It is either untrue or you found a bug. node....
nopara73's user avatar
  • 826
2 votes
Accepted

Is the generated Public Key from Private Key Unique in Bitcoin?

To a private key corresponds a unique public key. In your case, 16reZXagkyToongduimD25SEerXwP3MQ4n is an address (the hash + encoding of a public key).
hartmut's user avatar
  • 681
2 votes

Using NBitcoin or C# to derive Litecoin and Ethereum Addresses from Master HD Key

Not sure how NBitcoin works, but it looks like so far you have derived your private and public key, you now need to hash it in the Ethereum method rather than the bitcoin way. Look at step 3 in this ...
feedthedogs's user avatar
2 votes

Blockchain Explorer for local full node

You can use my blockchain parser (python script) that converts the local copy of blockchain (blkXXXXX.dat files) to human readable text view -> my parser Bases on this parser you can do anything you ...
Denis Leonov's user avatar
1 vote

C#, How can I actively query the crypto-market?

If you're looking for more than just price data, Coinigy is another option. https://www.coinigy.com/ I found their API easy to implement and very reliable and they covered all the exchanges I was ...
Tanmay's user avatar
  • 186
1 vote

Creating Payment system using Blockchain API

The question is pretty general in that you may be using Blockchain API in the generic way. Blockchain.info is a company that provides an API to use on the Bitcoin network. If you want to write ...
Dustin Butler's user avatar
1 vote

Read Wallet addresses with C# and Berkeley

A wallet.dat file contains much more than just addresses. In fact, it mostly does not contain addresses at all. There will be some addresses because they are added to the address book, but the wallet ...
Ava Chow's user avatar
  • 70.8k
1 vote

Generate BTC Private key from user string input

i upload a github repository. it takes text as input to generate private key, public key and segwit/bech32 address. https://github.com/drParadox312/Bitcoin_Key_Generator_From_Text_Input
user141181's user avatar
1 vote

Generate public addresses (NBitcoin)

Question was posted & answered on the NBitcoin repo, so copying my answers here for the benefit of SE members: This is a Blockchain.com-specific UX issue... They technically could generate a ...
C. Augusto Proiete's user avatar
1 vote
Accepted

NBitcoin -- How do I just check the balance of my wallet from my seed phrase?

Use var key = mnemoObj.DeriveExtKey(); then you can derive addresses as explained in this chapter (https://programmingblockchain.gitbook.io/programmingblockchain/key_generation). mnemo = new Mnemonic(&...
m1xolyd1an's user avatar
  • 5,656
1 vote

How do I connect to the Electrs index?

According to https://github.com/romanz/electrs The server indexes the entire Bitcoin blockchain, and the resulting index enables fast queries for any given user wallet, allowing the user to keep real-...
RedGrittyBrick's user avatar
1 vote

Candle decimal places

The Bitfinex:BTC/USD pair seems to be traded with one decimal figure precision. There is no way to get more accurate data, as this is the most accurate data. In my opinion one decimal figure is ...
Grunzwanzling's user avatar
1 vote
Accepted

Invoking the listunspent command via json-rpc on a full node

The issue is that you are sending the 1000 parameter as a string, not as a number. The JSON type when the RPC server receives it will be a string, which is incorrect. It does not convert this to an ...
Ava Chow's user avatar
  • 70.8k
1 vote

Trying to understand parent fingerprint in HD wallets

Can't use comments because of reputation, but both the question and the answer is saying that the fingerprint is based on private key. It should be the hash160 of the PUBLIC key. for even if you are ...
Jim Hansson's user avatar
1 vote
Accepted

Trying to understand parent fingerprint in HD wallets

It's ripemd160(sha256(parentpriv)) also known as hash160(parentpriv) source. There is also a python implementation here
Mike D's user avatar
  • 3,569
1 vote
Accepted

Can't RPC to Bitcoind (C# / Windows)

I do not understand why some samples use port 8332, some 8333, etc. Port 8333 is the port that bitcoin uses to connect to other nodes on the network. Port 8332 is the default port for a bitcoin RPC ...
meshcollider's user avatar
  • 11.8k
1 vote

NBitcoin: signing a transaction in TestNet

I have found your transaction here: 12e548ababf06160486f91bfa2a406f131631258b2db025eb36bcd5230a70524 It was successfully created, signed and submitted. I can also see a message that you added in. ...
Kyluke McDougall's user avatar
1 vote

C# BC, successfully creating and signing raw transaction

The signature you produced is correct but for a wrong "message", which is the only mistake that I could find. This is what you sign: f64b6480a2888596636d4995153e990ce95582a1308c9c568d2698e6dc1f7893 ...
Coding Enthusiast's user avatar
1 vote

How to get the bitcoin balance of a public key in C#?

Take a look at Blockparser: https://github.com/znort987/blockparser** It will let you parse blockchain data to verify balances (among other things)
dontmindme's user avatar
1 vote

How can i send bitcoin using c# and the nbitcoin library?

You can find an example here. Specifically, see the first example where Alice sends bitcoins to Satoshi: Transaction aliceFunding = new Transaction() { Outputs = { new TxOut("0.45", ...
karask's user avatar
  • 2,540
1 vote

Which language has better Bitcoin API experience, C# or Node.js?

API selection with other technology selection is having major dependencies on final goal. so you have to select the best suit of technology as per the business requirement.
Pranay's user avatar
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible