Questions tagged [c#]

Pronounced "C-Sharp". A computer language developed by Microsoft.

Filter by
Sorted by
Tagged with
4
votes
2answers
17k views

How do I call JSON RPC API using C#?

How do I access the JSON RPC API in C# in such a way that I can also read the errors that the interface provides?
3
votes
1answer
5k views

How do I Base58 Checked encode / decode an address in C#? What does “normalize leading zeros” mean?

I am trying to encode and decode a Base58 address in C#. The following function is a start, but it has a few issues: This code does not normalize leading zeros (what does that look like?) If this ...
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 ...
4
votes
1answer
2k views

JSON-RPC signrawtransaction returns false when using private keys

I've been working with BitcoinLib testing various parameters on the signrawtransaction rpc call. It's been mostly successful, however there seems to be a persisting problem when using only private ...
3
votes
2answers
763 views

Sender address from DecodeRawTransaction (C#)

I'm trying to get the senders address using the Bitcoin JSON RPC in C#. So I GetRawTransaction and then use the DecodeRawTransaction method to return my JSON object. I can see in the 'vout' of this ...
2
votes
1answer
193 views

Looking for unit testing data for Block.Bits to & from a JSON-RPC string

I'm trying to convert the JSON-RPC result of a Block's compressed bits property into a C# float with the following constraint //3 bytes mantissa, the leading byte as exponent (where only the 5 ...
2
votes
1answer
3k 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 ...