{"id":19483188,"url":"https://github.com/mmgrant73/bitcoinapi","last_synced_at":"2025-10-08T05:09:28.786Z","repository":{"id":10505160,"uuid":"12690611","full_name":"mmgrant73/bitcoinapi","owner":"mmgrant73","description":"This is a c++ library to help developers communicate with the bitcoin wallet using JSON-RPC","archived":false,"fork":false,"pushed_at":"2013-09-19T02:16:29.000Z","size":356,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T13:58:22.262Z","etag":null,"topics":["bitcoin-wallet","c","c-plus-plus","communication","developers-communicate","json-library","json-rpc","jsoncpp","protocol"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmgrant73.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-09T01:22:14.000Z","updated_at":"2020-02-08T09:11:19.000Z","dependencies_parsed_at":"2022-08-31T13:50:19.592Z","dependency_job_id":null,"html_url":"https://github.com/mmgrant73/bitcoinapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mmgrant73/bitcoinapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmgrant73%2Fbitcoinapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmgrant73%2Fbitcoinapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmgrant73%2Fbitcoinapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmgrant73%2Fbitcoinapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmgrant73","download_url":"https://codeload.github.com/mmgrant73/bitcoinapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmgrant73%2Fbitcoinapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891753,"owners_count":26063858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin-wallet","c","c-plus-plus","communication","developers-communicate","json-library","json-rpc","jsoncpp","protocol"],"created_at":"2024-11-10T20:13:55.383Z","updated_at":"2025-10-08T05:09:28.759Z","avatar_url":"https://github.com/mmgrant73.png","language":"C++","readme":"bitcoinapi\n==========\n\nThis is a c++ library to help developers communicate with the bitcoin wallet using JSON-RPC\n\nThe bitcoin wallet communicates using the JSON-RPC 1.0 protocol.  This is a wrapper library \nthe simplifies the communication with the bitcoin wallet using the JSON-RPC protocol.  One\ndoes not need to know this protocol as this library handles all the heavy lifting in the \nbackground.  A developer just needs to issue some simple function calls and the library\nwill handle all the communication needed to perform the task that the person desires.\n\nNote this library is still in the alpha stage and thus, there are probably bugs that I \nhave yet to address.  I will move this project along as fast as I can.\n\nRequirments needed to use this library\n--------------------------------------\n* CMake(version 2.6 or higher) - which can be downloaded at http://www.cmake.org\n* Libcurl - This is probably already installed on your system\n\nBuilding and installing this library\n--------------------------------------\nOpen your terminal and enter the following commands:\n```\n# Go to the build folder of the bitcoin-cpp project\ncd bitcoin-cpp/build \n\n# commands to build and install\ncmake ..\nmake\nmake install\n\n#if you have linux than the following command needs to be run\nldconfig\n```\n\nExample\n-------\nNote: Make sure you include the bitcoin.h header in your project\n\n1) This example will show you how to connect and get the balance from the bitcoin wallet\n\nFilename getbalance.cpp\n\n```\n#include \u003cbitcoin/bitcoin.h\u003e\nusing namespace std;\n\nint main()\n{\t\n\tstring username=\"username\";       //username for the bitcoin wallet\n\tstring password=\"password\";       //password for the bitcoin wallet\n\tstring address=\"127.0.0.1\";       //address to communicate with the bitcoin wallet\n\tint port=8332;                    //port the the bitcoin wallet is listening\n\n//This is the construct to connect to the bitcoin wallet//\t\n\tbitcoinapi btc(username,password,address,port); \n\n///////////////////////getbalance()////////////////////////\n//To get the balance from the bitcoin wallet, you just   //\n//have to call the \"getbalance function\" and it will     //\n//return a double value that holds the balance           //\n///////////////////////////////////////////////////////////\n\n\tcout \u003c\u003c \"getbalance method\" \u003c\u003c endl;\t\t\n\tdouble b2=btc.getbalance();\n\tcout \u003c\u003c \"Total balance = \" \u003c\u003c b2 \u003c\u003c endl;\n\n}\n```\nTo compile this example program run the following command from the commandline\n```\ng++ getbalance.cpp -lbitcoin -o getbalance\n```\nNote that this example and a couple more examples are located at bitcoin-cpp/example\n\nUsed Libraries:\n---------------\n* jsoncpp (licensed under MIT) jsoncpp is a very easy to use and powerful json library. It is used for all the JSON parsing and generation inside this library. http://jsoncpp.sourceforge.net/\n* curl lib curl is used for the HttpClient connections.\n* libjson-rpc-cpp (licensed under MIT) C++ framework for json-rpc (json remote procedure call).  I use a modify version of this library so that it can run \nJson-rpc 1.0.  It is design for Json-rpc 2.0. https://github.com/cinemast/libjson-rpc-cpp\n\nRoadmap for Version 1.1.0\n-------------------------\n* Will make changes to the JSON-RPC library so that it can do both Asynchronous and synchronous communication.  At the moment this library only does synchronous communication.\n* Add a caching layer so that it increase performance and lessen the network traffic\n\nChange Log: \n-----------\n* 9/15/13 - Added a derived class from bitcoinapi called litecoinapi.  This class adds support to communicate with the litecoin wallet\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmgrant73%2Fbitcoinapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmgrant73%2Fbitcoinapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmgrant73%2Fbitcoinapi/lists"}