<p>Here's a JSON-RPC C++ <a href="https://github.com/bytemaster/cpp_bitcoin_rpc" rel="nofollow">library</a>. </p>

CC BY-SA 3.0
2014-02-07T18:02:51.863Z
2014-02-07T18:02:51.863Z
Loourr
<p>[<strong>A Newer Library</strong>]</p>

<p>There is a wrapper for <strong>Bitcoind JSON/RPC</strong> interface written in C++ <a href="https://github.com/minium/bitcoin-api-cpp" rel="nofollow noreferrer">here</a>. It has tests &amp; full coverage for calls.</p>

CC BY-SA 4.0
2019-05-28T07:03:09.103Z
2019-05-28T07:03:09.103Z
behkod
<p>I know that bitcoind is written in C++, but I cannot figure out how to use its API within my program. I have been using a Python wrapper effectively, but I need another process running that is as quick as possible. Is there a library somewhere for bitcoind? Thanks.</p>

<p>Or could you just point me to a good Json-rpc library?</p>

CC BY-SA 3.0
2014-02-07T06:23:16.613Z
http://jsonrpc-cpp.sourceforge.net/ unless you are going to take some MAJOR time to look into how bitcoin really works just use the jsonrpc lib which works perfectly. You will also likely not achieve much more speed as the json calls are so much slower than python or C it will not make a difference.
michael.schuett
CC BY-SA 3.0
2014-02-07T06:35:42.003Z
Thanks a lot. Really, I thought it would run faster in C++ than Python?
Matthew Darnell
CC BY-SA 3.0
2014-02-07T06:38:42.187Z
Unless you have a very specific use case it is not worth the time to rewrite or pick up a new language.
michael.schuett
CC BY-SA 3.0
2014-02-07T06:44:31.643Z
I already know C++ fairly well, so I wouldn't really be picking it up. I'm needing to log every transaction using walletnotify in bitcoin.conf and insert them into a database. Would you recommend doing this every time a new transaction is received, or doing it in batches every so often?
Matthew Darnell
CC BY-SA 3.0
2014-02-07T11:13:36.310Z
why? This is already done in the blockchain.
T9b
CC BY-SA 3.0
2015-07-23T22:36:51.497Z
@T9b for example modeling blockchain data
jangorecki
<transactions><bitcoind><c++>
How to interact with bitcoind using C++?
Matthew Darnell
# How to interact with bitcoind using C++?

(Asked by: username_0 on 2014-02-07)

I know that bitcoind is written in C++, but I cannot figure out how to use its API within my program. I have been using a Python wrapper effectively, but I need another process running that is as quick as possible. Is there a library somewhere for bitcoind? Thanks.

Or could you just point me to a good Json-rpc library?

**Tags:** transactions, bitcoind, c++

> **Comments:**
> **username_1**: http://jsonrpc-cpp.sourceforge.net/ unless you are going to take some MAJOR time to look into how bitcoin really works just use the jsonrpc lib which works perfectly. You will also likely not achieve much more speed as the json calls are so much slower than python or C it will not make a difference.  
> **username_0**: Thanks a lot. Really, I thought it would run faster in C++ than Python?  
> **username_1**: Unless you have a very specific use case it is not worth the time to rewrite or pick up a new language.  
> **username_0**: I already know C++ fairly well, so I wouldn't really be picking it up. I'm needing to log every transaction using walletnotify in bitcoin.conf and insert them into a database. Would you recommend doing this every time a new transaction is received, or doing it in batches every so often?  
> **username_2**: why? This is already done in the blockchain.  
> **username_3**: @username_2 for example modeling blockchain data  

---

## 2 answers

### Answer by username_4 on 2014-02-07. Score: 4

Here's a JSON-RPC C++ [library](https://github.com/bytemaster/cpp_bitcoin_rpc).


---

### Answer by username_5 on 2019-05-28. Score: 0

[**A Newer Library**]

There is a wrapper for **Bitcoind JSON/RPC** interface written in C++ [here](https://github.com/minium/bitcoin-api-cpp). It has tests & full coverage for calls.


---

