Bitcoin Forum
March 19, 2024, 10:03:48 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: JSON-RPC C++ Library  (Read 4579 times)
bytemaster (OP)
Hero Member
*****
Offline Offline

Activity: 770
Merit: 566

fractally


View Profile WWW
May 21, 2011, 06:49:08 AM
 #1

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.

https://fractally.com - the next generation of decentralized autonomous organizations (DAOs).
1710842628
Hero Member
*
Offline Offline

Posts: 1710842628

View Profile Personal Message (Offline)

Ignore
1710842628
Reply with quote  #2

1710842628
Report to moderator
1710842628
Hero Member
*
Offline Offline

Posts: 1710842628

View Profile Personal Message (Offline)

Ignore
1710842628
Reply with quote  #2

1710842628
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710842628
Hero Member
*
Offline Offline

Posts: 1710842628

View Profile Personal Message (Offline)

Ignore
1710842628
Reply with quote  #2

1710842628
Report to moderator
1710842628
Hero Member
*
Offline Offline

Posts: 1710842628

View Profile Personal Message (Offline)

Ignore
1710842628
Reply with quote  #2

1710842628
Report to moderator
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 31, 2011, 08:49:35 PM
 #2

Bitcoin uses JSON-Spirit (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).

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
bytemaster (OP)
Hero Member
*****
Offline Offline

Activity: 770
Merit: 566

fractally


View Profile WWW
May 31, 2011, 10:06:13 PM
 #3

JSON Spirit is a nice library, but too much overhead.  This uses boost::property_tree to parse the JSON and only depends upon boost.

https://fractally.com - the next generation of decentralized autonomous organizations (DAOs).
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 31, 2011, 10:11:06 PM
 #4

I never said it wasn't still a good idea to write an easier to use library for Bitcoin RPC Wink.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Behrad
Newbie
*
Offline Offline

Activity: 19
Merit: 7


View Profile
May 28, 2019, 07:12:22 AM
Merited by aliashraf (2)
 #5

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!