ArkEcosystemArchive / qrcode

Licence: MIT license
A web component to generate QR codes for ARK payments.

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to qrcode

Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+11661.11%)
Mutual labels:  qr-code
qr-pirate
crawl QR-codes from search engines and look for bitcoin private keys
Stars: ✭ 58 (+222.22%)
Mutual labels:  qr-code
AIPs
ARK Improvement Proposals
Stars: ✭ 26 (+44.44%)
Mutual labels:  ark
Bardecoder
Detect and decode QR Codes, written in 100% Rust.
Stars: ✭ 145 (+705.56%)
Mutual labels:  qr-code
Jsqr
A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
Stars: ✭ 2,722 (+15022.22%)
Mutual labels:  qr-code
paper-wallet
The official Paper Wallet for the ARK Blockchain.
Stars: ✭ 22 (+22.22%)
Mutual labels:  ark
React Qr Svg
React component for rendering SVG QR codes
Stars: ✭ 134 (+644.44%)
Mutual labels:  qr-code
QRCodeFX
Simple tool to generate/read QR Code and export it.
Stars: ✭ 31 (+72.22%)
Mutual labels:  qr-code
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+14661.11%)
Mutual labels:  qr-code
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (+405.56%)
Mutual labels:  qr-code
React Qr Code
A QR code generator for React and React Native.
Stars: ✭ 153 (+750%)
Mutual labels:  qr-code
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (+972.22%)
Mutual labels:  qr-code
ark.db
Small and fast JSON database for Node and browser. 😋
Stars: ✭ 65 (+261.11%)
Mutual labels:  ark
Segno
Python QR Code and Micro QR Code encoder
Stars: ✭ 144 (+700%)
Mutual labels:  qr-code
PyBoof
Python wrapper around the BoofCV Computer Vision Library
Stars: ✭ 44 (+144.44%)
Mutual labels:  qr-code
Barcode
barcode.php - Generate barcodes from a single PHP file. MIT license.
Stars: ✭ 141 (+683.33%)
Mutual labels:  qr-code
kanban-board-app
Kanban style task management board app
Stars: ✭ 118 (+555.56%)
Mutual labels:  qr-code
WeChatQRCode
⛄ 基于OpenCV开源的微信二维码引擎移植的Android扫码识别库
Stars: ✭ 250 (+1288.89%)
Mutual labels:  qr-code
cryptology tbw
Cryptology - True Block Weight Voter share payout script for ARK Core blockchains
Stars: ✭ 13 (-27.78%)
Mutual labels:  ark
QR-secret-sharing
🔒 Create QR codes to secret-share a message. Ideal for cryptocurrency wallet recovery keys and passwords.
Stars: ✭ 94 (+422.22%)
Mutual labels:  qr-code

ARK QR Code

A web component to generate QR codes for ARK payments.

Latest Version Node Engine Build Status Codecov License: MIT

Lead Maintainer: Lúcio Rubens

Install

Script tag

  • Put this script tag <script src='https://unpkg.com/ark-qrcode@latest/dist/arkqrcode.js'></script> in the head of your index.html

Node Modules

  • Run npm install ark-qrcode --save
  • Put this script tag <script src='node_modules/ark-qrcode/dist/arkqrcode.js'></script> in the head of your index.html

In a stencil-starter app

  • Run npm install ark-qrcode --save
  • Add { name: 'ark-qrcode' } to your collections.

Usage

Insert the element in your code and enter your custom properties:

<ark-qrcode address="DE6os4N86ef9bba6kVGurqxmhpBHKctoxY" amount="20.3"></ark-qrcode>

Examples

<body>
<ark-qrcode address="DE6os4N86ef9bba6kVGurqxmhpBHKctoxY" amount="10.5" vendor-field="Hello%20Ark!" size="200" show-logo="true">
<script>
  document.querySelector('ark-qrcode').getURI();
  // => ark:DE6os4N86ef9bba6kVGurqxmhpBHKctoxY?amount=10.5&vendorField=Hello%20Ark!
</script>
</body>

Generate this QR code:

Properties

This package complies with the specifications described in AIP-13.

Attribute Description Type Required
address Ark recipient address encoded in Base58. String Yes
amount Amount in ARK (Ѧ) or DARK (DѦ). Number No
label Recipient label string. String No
size Size of the QR code (pixels) Number No
show-logo Display the ARK logo in QR code Boolean No
vendor-field Vendor field string (encoded URI). String No

Methods

You can interact with the component data using the methods below:

getURI()

Format the properties entered to the ARK URI scheme.

document.querySelector('ark-qrcode').getURI();
// => ark:DE6os4N86ef9bba6kVGurqxmhpBHKctoxY?amount=20.3

getDataURL([mime])

Generates a base64 encoded data URI for the QR code.

document.querySelector('ark-qrcode').getDataURL();
// => data:image/png;base64,iVBORw0KGgoAAAANSUhE...n6ofvMC4I9AAAAAElFTkSuQmCC

validateURI(uri)

Validate an URI string.

const uri = 'ark:DE6os4N86ef9bba6kVGurqxmhpBHKctoxY?amount=10.5';
document.querySelector('ark-qrcode').validateURI(uri);
// => ["ark:DE6os4N86ef9bba6kVGurqxmhpBHKctoxY?amount=10.5", "DE6os4N86ef9bba6kVGurqxmhpBHKctoxY", "?amount=10.5"]

deserializeURI(uri)

Deserialize the URI scheme to a JSON object.

const uri = 'ark:DE6os4N86ef9bba6kVGurqxmhpBHKctoxY?amount=10.5&vendorField=Hello%20Ark!';
document.querySelector('ark-qrcode').deserializeURI(uri);
// => { address: 'DE6os4N86ef9bba6kVGurqxmhpBHKctoxY', amount: 10.5, label: null, vendorField: 'Hello Ark!' }

fromObject(obj)

Instantiate a URI from an Object.

const obj = { address: DE6os4N86ef9bba6kVGurqxmhpBHKctoxY, amount: 10.5 };
const element = document.querySelector('ark-qrcode').fromObject(obj);
// => <ark-qrcode address="DE6os4N86ef9bba6kVGurqxmhpBHKctoxY" amount="10.5">

Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

MIT © ARK Ecosystem

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].