nem2-qr-library
⚠️ This package is currently still in development, please do not use in production. The author of this package cannot be held responsible for any loss of money or any malintentioned usage forms of this package. Please use this package with caution.
NEM2 QR Library generator to generate QR codes for Catapult (NEM2) accounts and transactions.
This is a PoC to validate the proposed NIP 7 QR Library Standard Definition. When stable, the repository will be moved to the nemtech organization.
Installation
npm install nem2-qr-library
Usage
Generate QRCode for a Transaction Request
; // (Optional) create transfer transaction (or read from network); // create QR Code base64; // get base64 notation for <img> HTML attribute;
Generate QRCode for a custom object
; // define custom object to suit your application use case.; // create QR Code base64; // get base64 notation for <img> HTML attribute;
Generate ContactQR code
; ;; // create QR Code base64 ; // get base64 notation for <img> HTML attribute;
Generate QRCode for a Mnemonic data
;; // create a mnemonic and password.;; // create QR Code base64; // get base64 notation for <img> HTML attribute;
The produced Base64 encoded payload can be used to display the QR Code. An example of display can be done easily with HTML, as follows:
Changelog
Important versions listed below. Refer to the Changelog for a full history of the project.
License
Licensed under the Apache License, Version 2.