{"id":24755132,"url":"https://github.com/genyleap/bitcoin-rpc","last_synced_at":"2026-04-13T22:33:26.172Z","repository":{"id":274168505,"uuid":"922112888","full_name":"genyleap/bitcoin-rpc","owner":"genyleap","description":"A high-performance C++ library for interacting with Bitcoin Core's JSON-RPC API. Designed for developers building blockchain tools, wallets, or analytics platforms.","archived":false,"fork":false,"pushed_at":"2025-01-31T05:29:54.000Z","size":161,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T13:22:03.070Z","etag":null,"topics":["bitcoin","bitcoin-api","bitcoin-rpc","cpp"],"latest_commit_sha":null,"homepage":"","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/genyleap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.md","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-25T10:57:20.000Z","updated_at":"2025-08-06T07:25:38.000Z","dependencies_parsed_at":"2025-09-05T13:20:35.772Z","dependency_job_id":"ead714d7-dca8-4170-8ed0-f84f418d5626","html_url":"https://github.com/genyleap/bitcoin-rpc","commit_stats":null,"previous_names":["genyleap/bitcoin-rpc"],"tags_count":0,"template":false,"template_full_name":"genyleap/pt","purl":"pkg:github/genyleap/bitcoin-rpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genyleap%2Fbitcoin-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genyleap%2Fbitcoin-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genyleap%2Fbitcoin-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genyleap%2Fbitcoin-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genyleap","download_url":"https://codeload.github.com/genyleap/bitcoin-rpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genyleap%2Fbitcoin-rpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","bitcoin-api","bitcoin-rpc","cpp"],"created_at":"2025-01-28T12:35:53.204Z","updated_at":"2026-04-13T22:33:26.155Z","avatar_url":"https://github.com/genyleap.png","language":"C++","readme":"# Bitcoin RPC Client\nA lightweight and easy-to-use C++ client for interacting with a Bitcoin node via JSON-RPC. This library provides a comprehensive interface to communicate with a Bitcoin node, enabling developers to perform various blockchain operations, manage wallets, and interact with the Bitcoin network.\n![splash](https://github.com/user-attachments/assets/9c6d1243-c826-4fe3-8a38-609aae710929)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![C++](https://img.shields.io/badge/C++-23-red.svg)](https://en.cppreference.com/w/cpp/23)\n\n---\n\n## Features\n\n- **Full JSON-RPC Support**: Implements all Bitcoin Core RPC methods.\n- **Easy Integration**: Simple and intuitive API for interacting with a Bitcoin node.\n- **Cross-Platform**: Works on Linux, macOS, and Windows.\n- **Modular Design**: Extensible and customizable for advanced use cases.\n- **Comprehensive Documentation**: Well-documented code with examples.\n\n---\n\n## Installation\n\n### Prerequisites\n\n- **Bitcoin Core**: Ensure you have a running Bitcoin node with JSON-RPC enabled.\n- **C++ Compiler**: Supports C++23 or later (e.g., GCC, Clang, or MSVC).\n- **Dependencies**:\n  - [JSONCPP](https://github.com/open-source-parsers/jsoncpp) for JSON parsing.\n  - [cURL](https://curl.se/libcurl/) for HTTP requests.\n\n### Build Instructions\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/genyleap/bitcoin-rpc.git\n   cd bitcoin-rpc\n   ```\n\n2. Build the project:\n   ```bash\n   mkdir build\n   cd build\n   cmake ..\n   make\n   ```\n\n3. Install the library (optional):\n   ```bash\n   sudo make install\n   ```\n\n---\n\n## Usage\n\n### Basic Example\n\nHere’s how to use the `BitcoinClient` to interact with a Bitcoin node:\n\n```cpp\n#include \"bitcoinclient.hpp\"\n#include \u003ciostream\u003e\n\nint main() {\n    // Initialize the Bitcoin client\n    BitcoinClient client(\"rpcuser\", \"rpcpassword\", \"http://127.0.0.1:8332/\");\n\n    // Get the best block hash\n    Json::Value bestBlockHash = client.getBestBlockHash();\n    std::cout \u003c\u003c \"Best Block Hash: \" \u003c\u003c bestBlockHash.asString() \u003c\u003c std::endl;\n\n    // Get blockchain info\n    Json::Value blockchainInfo = client.getBlockchainInfo();\n    std::cout \u003c\u003c \"Blockchain Height: \" \u003c\u003c blockchainInfo[\"blocks\"].asInt() \u003c\u003c std::endl;\n\n    return 0;\n}\n```\n\n### Available Methods\n\nThe `BitcoinClient` class supports all Bitcoin Core RPC methods, including:\n\n- **Blockchain RPCs**: `getBestBlockHash`, `getBlock`, `getBlockchainInfo`, etc.\n- **Wallet RPCs**: `getBalance`, `sendToAddress`, `createWallet`, etc.\n- **Network RPCs**: `getNetworkInfo`, `addNode`, `ping`, etc.\n- **Mining RPCs**: `getMiningInfo`, `getBlockTemplate`, `submitBlock`, etc.\n- **Raw Transactions RPCs**: `createRawTransaction`, `signRawTransaction`, `sendRawTransaction`, etc.\n\nFor a full list of methods, refer to the [documentation](#documentation).\n\n---\n\n## Configuration\n\nTo connect to your Bitcoin node, update the following parameters in your code:\n\n- **RPC Username**: Set in `bitcoin.conf` as `rpcuser`.\n- **RPC Password**: Set in `bitcoin.conf` as `rpcpassword`.\n- **RPC URL**: Default is `http://127.0.0.1:8332/`.\n\nExample `bitcoin.conf`:\n```ini\nrpcuser=yourusername\nrpcpassword=yourpassword\nrpcallowip=127.0.0.1\nserver=1\n```\n\n---\n\n## Documentation\n\nFor detailed documentation, refer to the [header file](include/BitcoinClient.hpp). Each method is documented with Doxygen-style comments, including descriptions, parameters, return values, and examples.\n\nTo generate the documentation locally:\n```bash\ndoxygen Doxyfile\n```\n\n---\n\n## Contributing\n\nContributions are welcome! If you’d like to contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bugfix.\n3. Commit your changes and push to your fork.\n4. Submit a pull request with a detailed description of your changes.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Support\n\nIf you find this project useful, please consider giving it a ⭐️ on GitHub. For questions or issues, open an [issue](https://github.com/genyleap/bitcoin-rpc/issues).\n\n---\n\n## Acknowledgments\n\n- [Bitcoin Core](https://bitcoincore.org/) for the JSON-RPC API.\n- [JSONCPP](https://github.com/open-source-parsers/jsoncpp) for JSON parsing.\n- [cURL](https://curl.se/libcurl/) for HTTP requests.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenyleap%2Fbitcoin-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenyleap%2Fbitcoin-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenyleap%2Fbitcoin-rpc/lists"}