<p>The Ardor wallet uses the NRS.generateQRCode() function from nrs.server.js to generate a QR code based on string data into a target div. Both the data and the div reference are provided as parameters. 
This function relies on the qrcode.js library from the 3rdparty folder. </p>

CC BY-SA 4.0
2018-07-23T08:45:54.457Z
2018-07-23T08:45:54.457Z
lyaffe
<p>I'd like to generate a qrcode the same way the Ardor Wallet generates it, such that it would be compatible.</p>

<p>I found qrcode related javascript shipped with the Ardor node download in ardor/html/www/js/util and ardor/html/www/js/3rdparty, however I wasn't able to find any documentation.</p>

<p>Thanks for any hints or pointers.</p>

<nxt><javascript><ardor><qrcode>
How can I generate the qrcode client-side that would be compatible with the Ardor Wallet qrcode
Mal Nemark
# How can I generate the qrcode client-side that would be compatible with the Ardor Wallet qrcode

(Asked by: username_0 on 2018-07-22)

I'd like to generate a qrcode the same way the Ardor Wallet generates it, such that it would be compatible.

I found qrcode related javascript shipped with the Ardor node download in ardor/html/www/js/util and ardor/html/www/js/3rdparty, however I wasn't able to find any documentation.

Thanks for any hints or pointers.

**Tags:** nxt, javascript, ardor, qrcode


---

## 1 answers

### Answer by username_1 on 2018-07-23. Score: 1

The Ardor wallet uses the NRS.generateQRCode() function from nrs.server.js to generate a QR code based on string data into a target div. Both the data and the div reference are provided as parameters.
This function relies on the qrcode.js library from the 3rdparty folder.


---

