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?

  • 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. Feb 7, 2014 at 6:23
  • Thanks a lot. Really, I thought it would run faster in C++ than Python? Feb 7, 2014 at 6:35
  • 1
    Unless you have a very specific use case it is not worth the time to rewrite or pick up a new language. Feb 7, 2014 at 6:38
  • 1
    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? Feb 7, 2014 at 6:44
  • why? This is already done in the blockchain.
    – T9b
    Feb 7, 2014 at 11:13

2 Answers 2


Here's a JSON-RPC C++ library.


[A Newer Library]

There is a wrapper for Bitcoind JSON/RPC interface written in C++ here. It has tests & full coverage for calls.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.