<p><a href="https://nxtwiki.org/wiki/The_Nxt_API_Examples#Encode_QR_Code" rel="nofollow">https://nxtwiki.org/wiki/The_Nxt_API_Examples#Encode_QR_Code</a></p>

<p>You can do the following:</p>

<pre><code>http://localhost:7876/nxt?
  requestType=encodeQRCode&amp;
  qrCodeData=NXT-7A48-47JL-T7LD-D5FS3&amp;
  width=100&amp;
  height=100
</code></pre>

<p>Or via the command line: </p>

<p><strong>curl -d requestType=encodeQRCode -d qrCodeData=NXT-XXX-XXX-XXX-XXX -d width=100 -d height=100 <a href="http://localhost:7876/nxt" rel="nofollow">http://localhost:7876/nxt</a></strong></p>

<p>You can use it in an image tag like this: </p>

<p><em>&lt; img src="data:image/gif;base64,<strong>R0lGODlhEAAQAMQAAO.....</strong>" width="100" height="100" /></em></p>

CC BY-SA 3.0
2016-08-04T21:42:39.747Z
2016-08-04T21:42:39.747Z
Patoshi パトシ
<p>Currently the nxt gui generates a QR code for certain pages where you can scan with your phone or another computer to do an air gap transaction. How can you do this via the api?</p>

<nxt><qrcode><ardor>
Generating a QR code using the NXT / Ardor api for scanning
Patoshi パトシ
# Generating a QR code using the NXT / Ardor api for scanning

(Asked by: username_0 on 2016-08-04)

Currently the nxt gui generates a QR code for certain pages where you can scan with your phone or another computer to do an air gap transaction. How can you do this via the api?

**Tags:** nxt, qrcode, ardor


---

## 1 answers

### Answer by username_0 on 2016-08-04. Score: 1

<https://nxtwiki.org/wiki/The_Nxt_API_Examples#Encode_QR_Code>

You can do the following:

```
http://localhost:7876/nxt?
  requestType=encodeQRCode&
  qrCodeData=NXT-7A48-47JL-T7LD-D5FS3&
  width=100&
  height=100

```

Or via the command line:

**curl -d requestType=encodeQRCode -d qrCodeData=NXT-XXX-XXX-XXX-XXX -d width=100 -d height=100 <http://localhost:7876/nxt>**

You can use it in an image tag like this:

*< img src="data:image/gif;base64,**R0lGODlhEAAQAMQAAO.....**" width="100" height="100" />*


---

