Title: JSON-RPC C++ Library Post by: bytemaster on May 21, 2011, 06:49:08 AM I was unable to find an existing RPC client library for C++ so I created a simple library that does what I need it to do for my own projects.
https://github.com/bytemaster/cpp_bitcoin_rpc If I missed something already built into Bitcoin then perhaps someone could point it out here. The library is a work in progress, I will be adding additional methods as I need them. Title: Re: JSON-RPC C++ Library Post by: Matt Corallo on May 31, 2011, 08:49:35 PM Bitcoin uses JSON-Spirit (http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx (http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx))
There is a bitcoin reference implementation in the commented-out main function in rpc.cpp (the very end). Title: Re: JSON-RPC C++ Library Post by: bytemaster on May 31, 2011, 10:06:13 PM JSON Spirit is a nice library, but too much overhead. This uses boost::property_tree to parse the JSON and only depends upon boost.
Title: Re: JSON-RPC C++ Library Post by: Matt Corallo on May 31, 2011, 10:11:06 PM I never said it wasn't still a good idea to write an easier to use library for Bitcoin RPC ;).
Title: Re: JSON-RPC C++ Library Post by: Behrad on May 28, 2019, 07:12:22 AM Thank you for the great job on ancient days of Bitcoin!
But as this answer shows up in web search results, I'm about to share a newer C++ wrapper for interacting with bitcoind json/rpc interface, to help the new-comers: https://github.com/minium/bitcoin-api-cpp |