user1878: Are there any C# wappers that take an OOO approach to the Bitcoin REST API, and encapsulate it in an easy to use format?

user11121: I'm the author of WalletClient.net and it's fairly up to date, covering most of the json-rpc commands.  It has an async model and strongly typed return objects. There's also specific support for Blockchain.info vs native Bitcoind.
Let me know what you think.

user21130: I wrote my own wrapper,
it wasn't complicated, 
this is the basic gist of it below. 
Adapt for your specific needs.
Example of getting raw transaction
internal static string GetRawTransaction(string txid)
{
    var CredentialCache = new CredentialCache();
    CredentialCache.Add(new Uri("http://127.0.0.1:8332"), "Basic", new NetworkCredential("[your rpc username]", "your rpc password"));

    var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://127.0.0.1:8332");
    httpWebRequest.ContentType = "text/json";
    httpWebRequest.Method = "POST";
    httpWebRequest.Credentials = CredentialCache;

    using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
    {
        string json;
        json = "{ \"jsonrpc\": \"2.0\", \"id\":\"" + Guid.NewGuid().ToString() + "\", \"method\": \"getrawtransaction\",\"params\":[\"" + txid + "\",1]}";

        streamWriter.Write(json);
    }
    var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
    using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
    {
        var responseText = streamReader.ReadToEnd();
        return responseText;
    }
}


user18984: The newest up to date c# library for .net  is .Net-Bitcoin-RPC with full documentation about each call. Very easy to use.

user-1: Take a look at this c# bitcoin rpc api wrapper: https://github.com/GeorgeKimionis/BitcoinLib that, unlike bitnet, is up-to-date.

1878: <p>Are there any C# wappers that take an OOO approach to the Bitcoin REST API, and encapsulate it in an easy to use format?</p>
 11121: <p>I'm the author of <a href="https://github.com/chriswill/WalletClient" rel="nofollow">WalletClient.net</a> and it's fairly up to date, covering most of the json-rpc commands.  It has an async model and strongly typed return objects. There's also specific support for Blockchain.info vs native Bitcoind.</p>

<p>Let me know what you think.</p>
 21130: <p>I wrote my own wrapper,
it wasn't complicated, 
this is the basic gist of it below. 
Adapt for your specific needs.</p>

<p><strong>Example of getting raw transaction</strong></p>

<pre><code>internal static string GetRawTransaction(string txid)
{
    var CredentialCache = new CredentialCache();
    CredentialCache.Add(new Uri("http://127.0.0.1:8332"), "Basic", new NetworkCredential("[your rpc username]", "your rpc password"));

    var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://127.0.0.1:8332");
    httpWebRequest.ContentType = "text/json";
    httpWebRequest.Method = "POST";
    httpWebRequest.Credentials = CredentialCache;

    using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
    {
        string json;
        json = "{ \"jsonrpc\": \"2.0\", \"id\":\"" + Guid.NewGuid().ToString() + "\", \"method\": \"getrawtransaction\",\"params\":[\"" + txid + "\",1]}";

        streamWriter.Write(json);
    }
    var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
    using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
    {
        var responseText = streamReader.ReadToEnd();
        return responseText;
    }
}
</code></pre>
 18984: <p>The newest up to date c# library for .net  is <a href="https://github.com/edmlbox/.Net-Bitcoin-RPC" rel="nofollow noreferrer">.Net-Bitcoin-RPC</a> with full documentation about each call. Very easy to use.</p>
 -1: <p>Take a look at this c# bitcoin rpc api wrapper: <a href="https://github.com/GeorgeKimionis/BitcoinLib" rel="nofollow">https://github.com/GeorgeKimionis/BitcoinLib</a> that, unlike bitnet, is up-to-date.</p>
