Questions tagged [nbitcoin]

A comprehensive Bitcoin library for the .NET framework.

Filter by
Sorted by
Tagged with
0
votes
2answers
41 views

Blockchain Explorer for local full node

I would like to build my own blockchain explorer because I have found that using the API's of 3rd party blockchain explorers only gives me around 2 or 3 requests per second. Does an open source ...
1
vote
1answer
49 views

Send payment and message at the same time

I am using NBitcoin to write some code. I want to send some bitcoin to an address AND include a message with it. The message could say who the payment came from or why it was sent. According to the ...
0
votes
0answers
22 views

Using NBitcoin to send Btc in C#

I have a variable number of addresses I want to send Btc to and I have a wallet (created in NBitcoin) as the source. A couple of questions. All the examples use the fluent methodology to declare, ...
0
votes
0answers
104 views

NBitcoin + QBitNinja + Testnet

I am busy building a solution ala. wallet that uses NBitcoin based on the Programming the Blockchain with C#. One of the issues that I am running into is that the calls to do a balance check via ...
1
vote
2answers
154 views

NBitcoin, how to implement wallet restoration? How does it work?

at first sorry for my ignorance, I have little experience at bitcoin programming. Im trying to implement a very simple wallet using NBitcoin library. I have done some work, but now Im stucked with ...
1
vote
2answers
126 views

Electrum's “script hash” form with NBitcoin?

I've come across how scripts are hashed in the electrum (stratum) protocol implementation by looking at the docs. I'm using NBitcoin, and I've tried to generate this hash from a segwit address, first ...
0
votes
0answers
26 views

BitCoin not signed in when trying to CreateInvoice

In code bellow I'm trying to create Bitcoin payment: var privateKey = "f267c05d4552b92825e46cfe056d6e3ff36072538f71d8c5acf3ebc4b09f4c87"; var key = new Key(Encoders.Hex.DecodeData(privateKey));...
2
votes
1answer
115 views

NBitcoin get signature, use spending P2SH transaction with non-standard script

After creating a new NBitcoin transaction (with a single pay-to-script hash input and multiple outputs), is there any way to calculate the transaction signature and manually put it in the inputs[0]....
0
votes
1answer
32 views

About Nbitcoin NodeBehavior

We wrote our transaction listener and we were implement the NodeBehavior class. But when I update version of NBitcoin v3.0.0.60 to v4.1.1.46 I can't use the NodeBehavior. Because Nbitcoin cannot ...
2
votes
0answers
181 views

Nbitcoin node c#

Create a transaction to send money, then it needs to be "registered" in the system, before doing so : using (var node = Node.Connect(Network.Main, node_address))//, node_address { ...
1
vote
0answers
671 views

nbitcoin Get balance

Try to get balance : var bitcoinPrivateKey = new BitcoinSecret("xxxx"); var network = bitcoinPrivateKey.Network; var address = bitcoinPrivateKey.GetAddress(); var client = new QBitNinjaClient(...
0
votes
1answer
157 views

NBitcoin vs Bitcoin Core RPC

I initially thought NBitcoin was a wrapper for Bitcoin Core JSON RPC and that Bitcoin Core was the only way to communicate with the bitcoin network. But now that I've discovered it's not, I'm curious ...
2
votes
1answer
302 views

Understanding a Wallet Restore

This is my first post on block chain related programming so please excuse my ignorance. I find the terminology in the BIP32 and BIP39 specs hard to understand so I'm trying to confirm my understanding ...
3
votes
1answer
118 views

NBitCoin Analyzing Blockchain

Maybe this question is utterly stupid, but I just don't get it: I am doing some POC work to understand the BitCoin network a little better and chose C# and the NBitCoin library as my implementation ...
2
votes
1answer
1k views

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

I am using NBitcoin, C# and the Bip44 standard to create an hdroot to derive child keys from. I then create keys that I want to use for Litecoin and Ethereum addresses by setting the proper 'coin_type'...
1
vote
1answer
440 views

NBitcoin and Mnemonic Standards

I am very new to Bitcoin development so forgive me... I'm using NBitcoin in a .Net console app to generate a master key using a mnemonic and then derive hierarchical keys. Here is the code I am using:...
1
vote
2answers
970 views

How to sign a SegWit transaction via NBitcoin?

Most tutorials out there just show how to sign it in the legacy way. And I know that NBitcoin already supports SegWit, so is there a snippet out there on how to sign it this way?
2
votes
1answer
2k views

NBitcoin: signing a transaction in TestNet

I am using the NBitcoin Library to program a simple Bitcoin Transfer Program in C#. The Program will take the coins from a Transaction ID and then Transfer it to a Destination Wallet Address The ...
1
vote
3answers
109 views

How can I integrate Bitcoin payments into my website created in C#?

I am new to Bitcoin. How can I integrate Bitcoin payments into my website which is designed using ASP.Net?
3
votes
1answer
385 views

How to determine if transaction is going to propagate?

So I am creating a transaction using TransactionBuilder like this: var builder = new TransactionBuilder(); Transaction tx = builder .AddCoins(coins) .AddKeys(privateKeys) .Send(recipientAddress,...
4
votes
0answers
436 views

How to Use TransactionBuilder in NBitcoin

I have used this code. It returns a success, but does not send bitcoin. var txRepo = new NoSqlTransactionRepository(); // Let’s me introduce you, Alice, Bob, Satoshi, and Nico with their ...
3
votes
1answer
1k views

How to run QBitNinja Server locally?

I have written a simple program that determines the available balance of a Bitcoin wallet, but it used the public API for QBitNinja at http://tapi.qbit.ninja, and everything is working fine, but I ...
2
votes
2answers
240 views

NBitcoin - how to set RBF to true in order to give higher fee for transaction

I have a few transactions staying unconfirmed - been a few days now. I suspect the minimum mining fee was upped - 15 minutes prior I was still doing hundreds of transactions a day at that fee - but ...
2
votes
1answer
612 views

How to confirm a payment was made?

I am planning to write a site that receive payments in Bitcoin. The client add products to the cart, then during check out I will create a Bitcoin address to let him pay for it (each cart gets a ...
2
votes
2answers
350 views

How to get Master Chain Code

I'm using NBitcoin and I created an ExtKey object. Now I need to get the Master Chain Code (see page 89 of Mastering Bitcoin for a good explanation) for this HD node. How do I do this? According to ...
6
votes
2answers
5k views

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

I am using NBitcoin library to create my private keys and addresses, but I can't find an example of how to send Bitcoin. Does anyone have a c# example code to send Bitcoin using the NBitcoin library ?...
3
votes
1answer
470 views

'The node is not in a connected state' error when trying to execute OP_RETURN transaction with NBitcoin

This is my first time trying out the NBitcoin library to create a transaction. I am trying to create an OP_RETURN transaction, but every time I try to execute the Version Handshake with the node I get ...
7
votes
1answer
714 views

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

At the moment it seems to me on the .NET side NBitcoin would compete with Bitcoin.js on the other. Update: I decided on NBitcoin. It has a great book to learn from. Note I will not form opinion on my ...
7
votes
2answers
5k views

C# parse bitcoin blockchain to get balance of an address

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 ...
1
vote
1answer
178 views

Does NBitcoin use hardened private derivation?

When writing the following code: ////////////////1st offline SERVER////////////////// //Create Master Private Key with a seed ExtKey privateKey = new ExtKey("...
4
votes
2answers
3k views

How to use NBitcoin for BIP32 wallets

I'm using c# NBitcoin to generate master key at an offline server ExtKey privateKey = new ExtKey("[My seed]"); ExtPubKey pubKey = privateKey.Neuter(); I will need to give the online server the ...