<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>

CC BY-SA 4.0
2020-08-26T14:26:04.037Z
2020-08-26T14:26:04.037Z
user18984
<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>

CC BY-SA 3.0
2015-10-21T06:58:29.073Z
2015-10-21T06:58:29.073Z
Sean Bradley
<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>

CC BY-SA 3.0
2014-02-13T02:18:28.857Z
I like the Blockchain integration, George's solution seems to be better on the QT side.
makerofthings7
CC BY-SA 3.0
2014-02-04T23:08:56.850Z
2014-02-04T23:08:56.850Z
ChrisW
<p><a href="https://github.com/Glasswalker/Wallet.Net/tree/master/Bitnet.Client" rel="nofollow">https://github.com/Glasswalker/Wallet.Net/tree/master/Bitnet.Client</a>
I use bitnet client, nothing but good things to say, if its missing anything you need its quite easy to add/modify anything you need.</p>

<p>If you open up bitcoin -qt then go to the console and type in help you will see a list of all the methods. (as not every single one is implemented in bitnet)</p>

CC BY-SA 3.0
2013-12-08T22:40:35.513Z
2013-12-08T22:40:35.513Z
Isuru Fonseka
<p>Here is my job, mostly for transactions but probably I'll update it in free time</p>

<p><a href="https://github.com/kamilk91/BitcoinManagerCsharp" rel="nofollow noreferrer">https://github.com/kamilk91/BitcoinManagerCsharp</a></p>

CC BY-SA 4.0
2019-11-29T23:36:54.497Z
2019-11-29T23:36:54.497Z
Kamil
<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>

<development><api>
Are there any C# wrappers for the Bitcoin REST API?
makerofthings7
# Are there any C# wrappers for the Bitcoin REST API?

(Asked by: username_0 on 2012-11-23)

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

**Tags:** development, api


---

## 5 answers

### Answer by username_1 on 2020-08-26. Score: 2

The newest up to date c# library for .net is [.Net-Bitcoin-RPC](https://github.com/edmlbox/.Net-Bitcoin-RPC) with full documentation about each call. Very easy to use.


---

### Answer by username_2 on 2015-10-21. Score: 1

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;
    }
}

```


---

### Answer by username_3 on 2014-02-04. Score: 1

I'm the author of [WalletClient.net](https://github.com/chriswill/WalletClient) 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.

> **Comments:**
> **username_0**: I like the Blockchain integration, George's solution seems to be better on the QT side.  

---

### Answer by username_4 on 2013-12-08. Score: 0

<https://github.com/Glasswalker/Wallet.Net/tree/master/Bitnet.Client>
I use bitnet client, nothing but good things to say, if its missing anything you need its quite easy to add/modify anything you need.

If you open up bitcoin -qt then go to the console and type in help you will see a list of all the methods. (as not every single one is implemented in bitnet)


---

### Answer by username_5 on 2019-11-29. Score: 0

Here is my job, mostly for transactions but probably I'll update it in free time

<https://github.com/kamilk91/BitcoinManagerCsharp>


---

