<p>I guess you are missing the coinbase immaturity here.
Coinbase transaction can only be spent after 100 blocks.
A single <code>generate</code> will not make the coinbase-transaction appear in <code>listunspent</code>. If you do a <code>generate 101</code> it will (because you mine 100 blocks on top of your "fee block").</p>

<p>Then you should get something like:</p>

<pre><code>{
    "txid": "11cc285148b32fd312260a67193875420931b8511b5f34f2991feb5d94901b8e",
    "vout": 0,
    "address": "n3y4wCJcY8zzim3CWuKpFi6BPPAf6DzhVm",
    "scriptPubKey": "2103559b1d5cd126e03b8ee0887ffc1ffd74d34fae49e2e2e65f7708071b032aabf5ac",
    "amount": 25.01920001,
    "confirmations": 101,
    "spendable": true,
    "solvable": true
  }, 
</code></pre>

CC BY-SA 3.0
2016-11-10T13:54:30.273Z
2016-11-10T13:54:30.273Z
Jonas Schnelli
<p>I'm developing on regtest mode and it seems that the fees I specify in every transaction are not included on every new mined block (<code>generate</code>). I only view (<code>listunspent</code>) a new 50 btc coinbase utxo at the miner node. So how can I <em>catch</em> the fees on regtest mode?</p>

CC BY-SA 3.0
2016-11-10T12:31:10.290Z
Mining fees works in my regtest mode: http://i.imgur.com/RSLRp4M.png
Jonas Schnelli
<regtest>
How to catch the fees on regtest mode?
joe.js
# How to catch the fees on regtest mode?

(Asked by: username_0 on 2016-11-10)

I'm developing on regtest mode and it seems that the fees I specify in every transaction are not included on every new mined block (`generate`). I only view (`listunspent`) a new 50 btc coinbase utxo at the miner node. So how can I *catch* the fees on regtest mode?

**Tags:** regtest

> **Comments:**
> **username_1**: Mining fees works in my regtest mode: http://i.imgur.com/RSLRp4M.png  

---

## 1 answers

### Answer by username_1 on 2016-11-10. Score: 3 | Accepted answer

I guess you are missing the coinbase immaturity here.
Coinbase transaction can only be spent after 100 blocks.
A single `generate` will not make the coinbase-transaction appear in `listunspent`. If you do a `generate 101` it will (because you mine 100 blocks on top of your "fee block").

Then you should get something like:

```
{
    "txid": "11cc285148b32fd312260a67193875420931b8511b5f34f2991feb5d94901b8e",
    "vout": 0,
    "address": "n3y4wCJcY8zzim3CWuKpFi6BPPAf6DzhVm",
    "scriptPubKey": "2103559b1d5cd126e03b8ee0887ffc1ffd74d34fae49e2e2e65f7708071b032aabf5ac",
    "amount": 25.01920001,
    "confirmations": 101,
    "spendable": true,
    "solvable": true
  }, 

```


---

