Questions tagged [nbitcoin]

23 questions
4
votes
0 answers

How to broadcast an NBitcoin Transaction with multiple TxIn ( transaction inputs)

I am running on TestNet. I am trying to add multiple transaction inputs TxIn() so as to spend from these inputs. When I broadcast my transaction, it returns successful but I can't see it on the block-explorer. I have handled a transaction with a…
3
votes
1 answer

I can't get Transaction Result with QBitNinjaClient

I'm a beginner of C# and blockchain. I'm studying blockchain with "Programming The Blockchain in C#". I tried to run this source code following the book: using NBitcoin; using QBitNinja.Client; using QBitNinja.Client.Models; namespace…
Jiyu
  • 33
  • 3
2
votes
1 answer

Extracting Wallet IDs (Public Keys) from Bitcoin Blockchain Data Structures

I'm trying to locate the public keys associated with a Bitcoin block's transaction inputs and outputs. Can anyone tell me where those are encoded? Thank you.
2
votes
1 answer

You must set the RNG (RandomUtils.Random) before generating random numbers

I am trying to follow the tutorial here. My code is as follows: static void Main(string[] args) { try { Key privateKey = new Key(); // generate a random private key PubKey publicKey = privateKey.PubKey; …
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
1
vote
2 answers

How check bitcoin balance with QBitNinja client without own node?

Can i check bitcoin balance by address with QBitNinja client without my own node? public static void Main(string[] args) { var client = new QBitNinjaClient(Network.TestNet); var address = new…
1
vote
1 answer

How to get/understand Bitcoin Transaction ID

i am using c# and NBitcoin to write my own Programm. (Reading the Book "Programming Blockchain") I can send out Bitcoins just fine, but very complicated. This is due to my lack of understanding of the Transaction ID. At the moment i need to get the…
Klark
  • 19
  • 2
0
votes
1 answer

Get private key from a BigInteger in NBitcoin

Is there a way to create new "Key" object from an existing BigInteger? Something like this? var bigInt = new BigInteger(934157136952); Key key = new Key(bigInt); I tried searching documentation. But couldn't find. Update 1 I also tried this. It…
Lakshitha Kanchana
  • 844
  • 2
  • 12
  • 32
0
votes
1 answer

Generate Bitcoin public/private key from Guid C#

I have a randomly generated 128 bit guid (cryptographically secure). How can I use this as a seed to generate a public and private key for Bitcoin, using C#? By seed, I mean that every time I use the same guid as input, it should result in the same…
Björn Morén
  • 693
  • 5
  • 14
0
votes
1 answer

NBitcoin generates duplicate Bitcoin addresse corresponding to private keys equal to 1 and 256 and

I was developing a solution with NBitcoin Nuget and suddenly I found it generated duplicate address for some private keys that are equal to 1 and 256 and ... The code I used for generating Bitcoin addresses is as…
0
votes
1 answer

Validating Purchases from an Exchange

I'm new to crypto but I'm attempting to implement a storefront to process bitcoin sending / receiving. In my first test I transferred some BTC from my coinbase account to my personally hosted wallet. The result was what appears to be a combined…
slacker
  • 137
  • 9
0
votes
1 answer

NBitcoin Transaction sign(secret, bool) is giving error. Instead of bool it says to pass Coin

I am using NBitcoin to sign a transaction. Here Transaction sign(secret, bool) method is giving error. (I've search the Internet, but no help.) Instead of bool it says to pass Coin object, how should I do this? Here's my code: var fee =…
Abhishek Pandey
  • 349
  • 3
  • 12
0
votes
1 answer

Why Does Command Line C# Interactive (csi.exe) Ignore Explicit Assembly Reference?

Microsoft (R) Visual C# Interactive Compiler version 2.9.0.63208 Windows 7 64 bit NBitcoin 4.1.1.68 ==== System.Security.Cryptography.Algorithms version 4.3.0.0 has an SHA256Managed class that I want to use in C# Interactive (csi.exe). I added that…
deduper
  • 1,944
  • 9
  • 22
0
votes
1 answer

How to get Bitcoin Private Key from an ExtPrivKey using NBitcoin

So, I am trying to send some money over using NBitcoin, there is a step where i am failing and that is creating de bitcoin secret to sign the transaction, I have the address, and the ExtPrivKey but i haven't gotten any luck signing it, any…
0
votes
1 answer

Request full blocks using NBitcoin's NodesGroup

I'm using https://github.com/MetacoSA/NBitcoin for a simple C# application, that just downloads the Bitcoin blockchain. What I already achieved is downloading the block headers via NodesGroup: var parameters = new…
larsman
  • 1
  • 5
0
votes
1 answer

How can verify without private key (NBitcoin)

I am using NBitcoin nuget package. I try to create private and pub key(address). And after that , I try to sign to some message and then verify the this signature with pub key. But NBitcoin , for the verify using the BitcoinSecret object which is…
1
2