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

learn more… | top users | synonyms

0
votes
0answers
9 views

NBitcoin - SPV - DevideByZeroExceprion

I downloaded Nicolas Dorier SPV project from git, where he presents how to use NBitcoin to make simple wallet. It was set for TestNet as default. When I changed it to Main net I started getting ...
0
votes
0answers
6 views

NBitcoin - AddressManager - what is source?

In Nbitcoin.Protocol we can find: AddressManager.Add(IPAddress addr, IPAddress source) what is the 'source' param? I understand that addr is node address (i.e.:123.32.12.54:8333 for main net) but ...
0
votes
0answers
17 views

NBitcoin - get Transaction for address

I am making BTC wallet. My current task is getting all transactions for address. Is there anyone who can help me figure it out? I would really don't like to dig in blockchain or something like that. ...
2
votes
0answers
30 views

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

I have a specific usecase, but I won't bother you guys with it, since it is an important general question and will be useful in the future. Right now it seems to me on the .NET side NBitcoin would ...
2
votes
0answers
55 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 ...
0
votes
0answers
25 views

what is the real formula to calculate difficulty of share received from miner with params(nonce,ntime,target,diff1)?

how can i calculate share difficulty? i have higher share difficulty value issue at this calculation. using coiniumserv pool. ...
0
votes
2answers
74 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 ...
1
vote
2answers
107 views

How to generate a Litecoin Private key and correspondent Public Address in C#

I found this C# tool to generate addresses for Bitcoin (compressed and uncompressed): https://en.bitcoin.it/wiki/Bitcoin_Address_Utility https://github.com/casascius/Bitcoin-Address-Utility It ...
0
votes
2answers
109 views

Bitfinex 400 error

string url = @"https://api.bitfinex.com/v1/balances"; string paramDict = "{\"request\": \"/v1/balances\",\"nonce\": \"" + GetNonce() * 10000 + "\"}"; string payload ...
1
vote
1answer
89 views

c# BitcoinLib: GetRawTransaction verbose=1 does not work

I want to find out confirmation number for non-wallet transaction. When I use ...
1
vote
1answer
92 views

Matching KeyPath in application with Wallet32 Keypath for Bip44 wallets

I have an application where I create an HD wallet with a passphrase and save the public master key to the database for the user. Then, I want the user to be able to back up the wallet to their own ...
2
votes
2answers
219 views

Options for a Client Only C# application

If I want to create a client only, C# desktop application, what are my options for working with Bitcoin? I could try to port BitcoinJ, which seems like a lot of overhead in terms of initial effort ...
1
vote
1answer
144 views

What encoding is “pubkey” from the JSONRPC validateaddress command?

I need to convert a public key into a form suitable for use with BouncyCastle. To do this I open the debugger and write: ListAddressGroupings I then pick an address and write validateaddress ...
3
votes
1answer
452 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 ...
1
vote
0answers
215 views

Mt.Gox API v2 with C# - authentication problem 403

I'm trying to access the Mt.Gox API v2 via C# and HTTP requests. I've put together the following code based on various examples I found online (e.g. the nitrous documentation). private string ...
1
vote
0answers
2k views

C# - JSON-RPC - How to build the json object before serialization (createrawtransaction)

I am trying to build a C# application working on JSON-RPC with Bitcoin-qt (server mode). I am using Bitsharp, though I don't think this should matter at all. First off the InvokeMethod: ...
1
vote
1answer
458 views

Coinbase IPN test page not posting data?

On Coinbase under Merchant Profile I'm entering the URL: https://www.scirra.com/handlers/coinbasecallback.ashx For the IPN tester. This ashx page has the code: var r = ""; foreach(string name in ...
1
vote
1answer
346 views

MtGox http api “trades since” requests keep being timed out

i wrote a simple function to retrieve trades from mtgox with following HTTP API call: https://data.mtgox.com/api/1/BTCUSD/trades?since documented here: ...
2
votes
2answers
3k views

MtGox websockets api returning “400 Bad Request”

I want to get started with the Mt. Gox websockets API, but I can't seem to get a good response from the server. I'm sending the following (captured with Wireshark): GET /mtgox HTTP/1.1 User-Agent: ...
2
votes
0answers
396 views

bitcoind 400 bad request - what's wrong with this code?

As per this code sample, I'm attempting to make a .net httpwebrequest from my local machine to a local bitcoind -daemon server. However, I'm only receiving a 400 bad request at ...
3
votes
1answer
632 views

What is wrong with this C# code that converts a block's bits into a target?

UPDATE: The code in this question works for all test cases (Hurray!) however I don't like how GetCompact uses the Math.Abs function and don't think it's true to the OpenSSL implementation. Fixing ...
1
vote
1answer
128 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 ...
8
votes
6answers
3k views

Are there any C# Bitcoin libraries and/or mining pool software packages?

I was keen to write/launch a .Net pooled mining server as an exercise of getting into the Bitcoin universe. Are there any C# ports of the libraries needed to achieve this? If not Are there any ...
2
votes
1answer
1k 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 ...
4
votes
1answer
115 views

I'm developing on the Test network. Are there any “rules” or communication methods I should adopt?

I'm testing a C# port of the client on the Test network and need to test for a variety of conditions. Should I communicate to others regarding my actions on the network? If so, what method of ...
4
votes
2answers
5k 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?
2
votes
2answers
156 views

Does FIPS 140-2 crypto certification matter for Bitcoin?

I'm implementing part of the Bitcoin client in C# and noticed that I have the choice between FIPS 140-2 and non certified versions of SHA256. Supposedly both versions give the same hash. Does the ...