<blockquote>
<p><strong>Are there any secure libraries in C/C++ or Python ...</strong></p>
</blockquote>
<p><a href="https://developer.bitcoin.org/devguide/mining.html" rel="nofollow noreferrer">https://developer.bitcoin.org/devguide/mining.html</a> says</p>
<blockquote>
<p>Resources: The GPLv3 BFGMiner mining software and AGPLv3 Eloipool mining pool software are widely-used among miners and pools. The libblkmaker C library and python-blkmaker library, both MIT licensed, can interpret GetBlockTemplate for your programs.</p>
</blockquote>

CC BY-SA 4.0
2021-08-09T11:17:55.630Z
2021-08-09T11:17:55.630Z
RedGrittyBrick
<p>Are there any secure libraries in C/C++ or Python that can allow to get unconfirmed transactions, get block templates, create a block header, help check the structure of block, publish the block after its mined, see if it was mined successfully and receive the mining reward if the mining was successful in a preexisting online wallet or local wallet.</p>
<p>From whatever I am reading we need bitcoin core but it requires 400 GB download (bandwidth issue not storage). And I am failing to understand why we absolutely need it if we are just mining and publishing the whole block. Why can't we use libraries that use RPCs or have the data (like format etc) in them as we don't need a full client, block list or node for it. These tasks seem relatively simpler.</p>
<p>The mining of the header (the core of it as I understand is guessing the nonce) could be done separately by the user as solo (we don't need to worry about it). The rest of the process is what we are concerned about.</p>
<p>My environment is windows 32 bit.</p>
<p>I am new to bitcoins thus need some help as I am lost on this.
P.S. I am not trying to make profit and under no illusion that the problem is easy. So we don't need to worry about that. Just that failing to find the appropriate libraries/SW.</p>

<mining-software>
A little help Mining software libraries
J.Doe
# A little help Mining software libraries

(Asked by: username_0 on 2021-08-08)

Are there any secure libraries in C/C++ or Python that can allow to get unconfirmed transactions, get block templates, create a block header, help check the structure of block, publish the block after its mined, see if it was mined successfully and receive the mining reward if the mining was successful in a preexisting online wallet or local wallet.

From whatever I am reading we need bitcoin core but it requires 400 GB download (bandwidth issue not storage). And I am failing to understand why we absolutely need it if we are just mining and publishing the whole block. Why can't we use libraries that use RPCs or have the data (like format etc) in them as we don't need a full client, block list or node for it. These tasks seem relatively simpler.

The mining of the header (the core of it as I understand is guessing the nonce) could be done separately by the user as solo (we don't need to worry about it). The rest of the process is what we are concerned about.

My environment is windows 32 bit.

I am new to bitcoins thus need some help as I am lost on this.
P.S. I am not trying to make profit and under no illusion that the problem is easy. So we don't need to worry about that. Just that failing to find the appropriate libraries/SW.

**Tags:** mining-software


---

## 1 answers

### Answer by username_1 on 2021-08-09. Score: 1

> **Are there any secure libraries in C/C++ or Python ...**

<https://developer.bitcoin.org/devguide/mining.html> says

> Resources: The GPLv3 BFGMiner mining software and AGPLv3 Eloipool mining pool software are widely-used among miners and pools. The libblkmaker C library and python-blkmaker library, both MIT licensed, can interpret GetBlockTemplate for your programs.


---

