A Vue.js component to generate QR codes for Ark payments.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
build
src
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
banner.png
jest.config.js
package.json
yarn.lock

README.md

Ark QR-Code Vue

Greenkeeper badge

Installation

You can install the package via yarn:

yarn add @arkx/qr-code-vue

or npm:

npm install @arkx/qr-code-vue --save

Next you must register the component.

import ArkQRCode from '@arkx/qr-code-vue'

Vue.use(ArkQRCode)

Browser Support

ark-qr-code-vue has the same browser support as Vue (see https://github.com/vuejs/vue). To use it in a browser based environment simply include <script src='https://unpkg.com/ark-qr-code-vue@latest/dist/index.min.js'></script> in your header.

Usage

<ArkQrCode address="DE6os4N86ef9bba6kVGurqxmhpBHKctoxY" :amount="20.3" />

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

Authors

License

MIT © Brian Faust