Socket
Socket
Sign inDemoInstall

ark-qrcode-react

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ark-qrcode-react

A React component to generate QR codes for ARK payments.


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Install size
1.02 MB
Created
Weekly downloads
 

Readme

Source

ARK QR Code React Component

This is an unofficial spin-off of the official Ark web component to generate QR codes for ARK payments.

I wanted to be able to create Ark QR codes inside of my React app, which doesn't use TypeScript or Stencil.

Install

Node Modules

  • Run npm install ark-qrcode-react --save
  • Import the component import ArkQrCode from 'ark-qrcode-react';

Usage

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

<ArkQrCode
  address="AG2QPHeZhbaYvEhB2Sbng7HNDX2Sai1on1"
  amount={1}
  label="ArkMoon%20Donations"
  showLogo={true}
  size={200}
  vendorField="QR%20Code%20donation" />

Generates this QR code:

Properties

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

AttributeDescriptionTypeRequired
addressArk recipient address encoded in Base58.StringYes
amountAmount in ARK (Ѧ) or DARK (DѦ).NumberNo
labelRecipient label string.StringNo
sizeSize of the QR code (pixels)NumberNo
show-logoDisplay the ARK logo in QR codeBooleanNo
vendor-fieldVendor field string (encoded URI).StringNo

Authors

based off of the work of:

License

ARK QRCode React is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Last updated on 09 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc