mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
June 25, 2012, 07:48:44 AM |
|
I wrote this for a couple projects I'm working on, but thought I'd share it since the only other C# library hasn't been updated in over a year. I've implemented every rpc call in 0.6.2, as well as the coin control branch. https://github.com/mb300sd/Bitcoin.NETTested with Mono framework as well as Microsoft .Net.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
jim618
Legendary
Offline
Activity: 1708
Merit: 1066
|
|
June 25, 2012, 08:41:37 AM |
|
Good work there mb300sd!
Hopefully it will inspire C# coders to write <Insert Great New Bitcoin Program Here> with it.
:-)
|
|
|
|
_mr_e
Legendary
Offline
Activity: 817
Merit: 1000
|
|
June 27, 2012, 12:58:17 AM |
|
Is there any documentation on how to use this? What is the Uri that needs to be passed into BitcoinRPC?
|
|
|
|
mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
June 27, 2012, 04:57:39 AM |
|
Is there any documentation on how to use this? What is the Uri that needs to be passed into BitcoinRPC?
Look in Test.cs for a basic example. No documentation but its pretty intuitive. All commands have the same parameters as the ones passed to bitcoind, and return a basic type, xxxxxxResponse class or IEnumerable<> of one. The xxxxxResponse classes have the same property names as the JSON objects returned by bitcoind.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
flower1024
Legendary
Offline
Activity: 1428
Merit: 1000
|
|
June 27, 2012, 06:03:07 AM |
|
does it work with blockchain.infos wallet? it does implement all bitcoin rpc calls
i just want to write a small stats app
|
|
|
|
mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
June 27, 2012, 06:17:26 AM |
|
does it work with blockchain.infos wallet? it does implement all bitcoin rpc calls
i just want to write a small stats app
I see no reason it wouldn't as long as the rpc calls are the same.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
Kitemike
|
|
June 27, 2012, 09:28:30 PM |
|
I’m glad to see I’m not the only one that writes 10,000 lines of code without a single comment LOL. I’m still reading thru the code making sure there isn’t a line hidden in someplace that just steals my wallet, but so far it look pretty complete. Thanks for making this available. I’m really looking forward to digging into it and automating my SatoshiDice plays.
|
|
|
|
mb300sd (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
Drunk Posts
|
|
June 27, 2012, 11:20:19 PM |
|
I’m glad to see I’m not the only one that writes 10,000 lines of code without a single comment LOL. I’m still reading thru the code making sure there isn’t a line hidden in someplace that just steals my wallet, but so far it look pretty complete. Thanks for making this available. I’m really looking forward to digging into it and automating my SatoshiDice plays. Exactly what I'm using it for ---------------------- I just pushed a new branch that supports batch rpc calls from this pull request, https://github.com/bitcoin/bitcoin/pull/1512Mostly untested.
|
1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
|
|
|
_mr_e
Legendary
Offline
Activity: 817
Merit: 1000
|
|
September 26, 2013, 02:18:44 AM |
|
Is this library still working? I am trying to understand the code and run the test but am having a problem deserializing the result. I am getting the error:
Error setting value to 'result' on 'BitcoinNET.RPCClient.RPCResponse`1[Newtonsoft.Json.Linq.JObject]'.
|
|
|
|
BitKoot
Member
Offline
Activity: 113
Merit: 10
|
|
September 26, 2013, 02:05:00 PM |
|
Is this library still working? I am trying to understand the code and run the test but am having a problem deserializing the result. I am getting the error:
Error setting value to 'result' on 'BitcoinNET.RPCClient.RPCResponse`1[Newtonsoft.Json.Linq.JObject]'.
I case you can't get it to work, I have made a similar RPC wrapper for bitcoin-qt: BitcoinRpcSharp - A C# wrapper for the Bitcoin JSON RPC interfaceOne quick example (calling getinfo): BitcoinWallet wallet = new BitcoinWallet("http://192.168.56.1:19001", "test", "123", false); Info info = wallet.GetInfo(); Console.WriteLine("Current difficulty: {0}", info.Difficulty);
|
|
|
|
vual
|
|
September 29, 2013, 09:35:10 AM |
|
Thanks a bunch, very sexy!
|
|
|
|
edmlbox
Newbie
Offline
Activity: 44
Merit: 0
|
|
August 26, 2020, 02:22:39 PM |
|
The newest up to date c# library for .net is .Net-Bitcoin-RPC with full documentation about each call. Very easy to use.
|
|
|
|
|
|