<p>Based on the <a href="https://github.com/pooler/cpuminer/blob/master/cpu-miner.c#L188" rel="nofollow noreferrer">source</a> cpuminer has a <code>--coinbase-addr</code> parameter which accepts a bitcoin address (for example: <code>./cpuminer --coinbase-addr=1abcdef...</code>, I believe you only need to set this.</p>

<p>The program <a href="https://github.com/pooler/cpuminer/blob/46e919f93cb16756a92fe8c957e78ed1fc634384/cpu-miner.c#L450" rel="nofollow noreferrer">checks if you have provided an address</a> and if not then switches to "getwork" mode, unless you disabled it by adding the <code>--no-gbt</code> command line switch.</p>

CC BY-SA 3.0
2017-06-29T21:14:32.333Z
2017-06-29T21:14:32.333Z
Gábor Héja
<p>I am setting up a Raspberry Pi 3 to be a full node and miner. I know I will probably never win a mining block. I am doing this for fun and learning.</p>

<p>I do not want to do a pool. I want to just do solo mining to learn how it works.</p>

<p>I set up bitcoind from the official bitcoin 0.13.2 git repo.</p>

<p>I found a cpuminer (minerd) and am setting that up.</p>

<p>The question I have is about the wallet address that will receive any bitcoins that get generated as a reward for mining a block.</p>

<p>I know that when a miner wins the mining of a block it creates a transaction in the block to receive the bit coins that are rewarded.</p>

<p>What I don't understand is how that wallet address gets created.</p>

<p>I have created my own wallet on another computer and would just like any rewarded coins for mining to go into that wallet.</p>

<p>I also know that you can create a wallet on the mining computer (RPi) itself. Is that required?</p>

<p>Please give some instructions on how to set up that mining reward address wherever it needs to be set up.</p>

<p>Like I said I probably will never be lucky enough to mind a block, but if I happen to get lucky I want to have a proper address set up to receive that reward.</p>

<raspberry-pi>
RPi3 bitcoind and solo mining
user856232
# RPi3 bitcoind and solo mining

(Asked by: username_0 on 2017-06-29)

I am setting up a Raspberry Pi 3 to be a full node and miner. I know I will probably never win a mining block. I am doing this for fun and learning.

I do not want to do a pool. I want to just do solo mining to learn how it works.

I set up bitcoind from the official bitcoin 0.13.2 git repo.

I found a cpuminer (minerd) and am setting that up.

The question I have is about the wallet address that will receive any bitcoins that get generated as a reward for mining a block.

I know that when a miner wins the mining of a block it creates a transaction in the block to receive the bit coins that are rewarded.

What I don't understand is how that wallet address gets created.

I have created my own wallet on another computer and would just like any rewarded coins for mining to go into that wallet.

I also know that you can create a wallet on the mining computer (RPi) itself. Is that required?

Please give some instructions on how to set up that mining reward address wherever it needs to be set up.

Like I said I probably will never be lucky enough to mind a block, but if I happen to get lucky I want to have a proper address set up to receive that reward.

**Tags:** raspberry-pi


---

## 1 answers

### Answer by username_1 on 2017-06-29. Score: 1

Based on the [source](https://github.com/pooler/cpuminer/blob/master/cpu-miner.c#L188) cpuminer has a `--coinbase-addr` parameter which accepts a bitcoin address (for example: `./cpuminer --coinbase-addr=1abcdef...`, I believe you only need to set this.

The program [checks if you have provided an address](https://github.com/pooler/cpuminer/blob/46e919f93cb16756a92fe8c957e78ed1fc634384/cpu-miner.c#L450) and if not then switches to "getwork" mode, unless you disabled it by adding the `--no-gbt` command line switch.


---

