<p>Using Bitcoin Core, I would combine <a href="https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/getnewaddress/" rel="nofollow noreferrer"><code>getnewaddress</code></a>, <code>qrencode</code>, and <a href="https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/listtransactions/" rel="nofollow noreferrer"><code>listtransactions</code></a>.</p>
<pre><code>&gt; bitcoin-cli getnewaddress ( &quot;label&quot; &quot;address_type&quot; )
</code></pre>
<p>Allows you to generate a new invoice address and label it to identify the current purchasing process. It returns a string with the newly generated address which you can then decorate according to the <a href="https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki" rel="nofollow noreferrer">BIP21</a> URI scheme to allow operating systems to recognize it as a Bitcoin address, and output that the resulting string using a quick response code tool such as <code>qrencode</code>.</p>
<p>Finally, you would poll your wallet for new transactions using</p>
<pre><code>&gt; bitcoin-cli listtransactions ( &quot;label&quot; count skip include_watchonly )
</code></pre>
<p>which will give you recent transactions relevant to the wallet, or alternatively allows you to specifically filter by the label you previously attached in <code>getnewaddress</code>. The rpc descriptions I linked are for Bitcoin Core 0.21.0, but older docs are available through the same site.</p>
<p>Note that versions preceding Bitcoin Core 0.17.0 (released in October 2018) are past their End of Life date in their <a href="https://bitcoincore.org/en/lifecycle/" rel="nofollow noreferrer">maintenance cycle</a>. I would emphatically recommend using a newer version of Bitcoin than what may have shipped with Ubuntu 16.04.</p>

CC BY-SA 4.0
2021-02-05T18:09:06.193Z
2021-02-05T18:14:13.783Z
2021-02-05T18:14:13.783Z
Murch
<p>Which one do you recommend for this</p>
<ol>
<li>Command line to generate QR-Code + address for requesting money</li>
<li>Command line to check if the above has been received</li>
</ol>
<p>I don't want to install too many versions of Bitcoin wallets on my machine so I thought I'd come here asking for some guidance first</p>
<p>Using Ubuntu 16.04</p>

<bitcoin-core><address-generation><ubuntu><receiving><qrcode>
How do you generate a qr code for a new address and check for incoming payments from the command line?
Bitcoin Digger
# How do you generate a qr code for a new address and check for incoming payments from the command line?

(Asked by: username_0 on 2021-02-05)

Which one do you recommend for this

1. Command line to generate QR-Code + address for requesting money
2. Command line to check if the above has been received

I don't want to install too many versions of username_0 wallets on my machine so I thought I'd come here asking for some guidance first

Using Ubuntu 16.04

**Tags:** bitcoin-core, address-generation, ubuntu, receiving, qrcode


---

## 1 answers

### Answer by username_1 on 2021-02-05. Score: 1 | Accepted answer

Using username_0 Core, I would combine [`getnewaddress`](https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/getnewaddress/), `qrencode`, and [`listtransactions`](https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/listtransactions/).

```
> username_0-cli getnewaddress ( "label" "address_type" )

```

Allows you to generate a new invoice address and label it to identify the current purchasing process. It returns a string with the newly generated address which you can then decorate according to the [BIP21](https://github.com/username_0/bips/blob/master/bip-0021.mediawiki) URI scheme to allow operating systems to recognize it as a username_0 address, and output that the resulting string using a quick response code tool such as `qrencode`.

Finally, you would poll your wallet for new transactions using

```
> username_0-cli listtransactions ( "label" count skip include_watchonly )

```

which will give you recent transactions relevant to the wallet, or alternatively allows you to specifically filter by the label you previously attached in `getnewaddress`. The rpc descriptions I linked are for username_0 Core 0.21.0, but older docs are available through the same site.

Note that versions preceding username_0 Core 0.17.0 (released in October 2018) are past their End of Life date in their [maintenance cycle](https://bitcoincore.org/en/lifecycle/). I would emphatically recommend using a newer version of username_0 than what may have shipped with Ubuntu 16.04.


---

