Bitcoin Forum
June 25, 2018, 07:22:41 PM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: JSON-RPC C++ Library  (Read 4373 times)
bytemaster
Hero Member
*****
Offline Offline

Activity: 770
Merit: 552

BitShares


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://steemit.com  Blogging is the new Mining
The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
blap
Jr. Member
*
Offline Offline

Activity: 52
Merit: 0


=)


View Profile
May 31, 2011, 08:44:10 PM
 #2

 Smiley

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 500


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

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 Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
bytemaster
Hero Member
*****
Offline Offline

Activity: 770
Merit: 552

BitShares


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

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://steemit.com  Blogging is the new Mining
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 500


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

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

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!