crypto-transfer-qr

1.1.5 • Public • Published

Crypto-Transfer-QR

This is a program for generate QR of crypto address with transfer amount.

npm npm NPM

Donation

Support the This Software Foundation!

ETH: 0xF1c51266886c539Bd3e613ff17DBBDF653ae151e

Install

$ npm i crypto-transfer-qr

And install dependency packages.

$ npm i qrcode.react

Example

A simple program to Generate Crypto Transfer QRCode. (The default value is to send 1000 JPYC on the Matic(Polygon) Mainnet into "0xF1c51266886c539Bd3e613ff17DBBDF653ae151e")

// import this package
import CryptoTransferQR from "crypto-transfer-qr";

const App = () => {
  return <CryptoTransferQR />;
};

export default App;

Property

Set the options as follows.

⚠️ When adding an option, an error will occur if even one is missing.

This program is to send 100 USDC on the Ethereum Mainnet into "0xF1c51266886c539Bd3e613ff17DBBDF653ae151e"

<CryptoTransferQR 
  contract="0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
  chain="1"
  to="0xF1c51266886c539Bd3e613ff17DBBDF653ae151e"
  amount={100}
  decimals="6"
/>
property type default value
contract string 0x6ae7dfc73e0dde2aa99ac063dcf7e8a63265108c
chain string 1
to string 0xF1c51266886c539Bd3e613ff17DBBDF653ae151e
decimals string 18
amount number 1000
renderAs string ('canvas' 'svg') 'canvas'
size number 200
bgColor string (CSS color) "#FFFFFF"
fgColor string (CSS color) "#000000"
level string ('L' 'M' 'Q' 'H') 'L'
includeMargin boolean false

More

Network Name Chain Id
Ethereum Mainnet 1
Binance Smart Chain Mainnet 56
Matic(Polygon) Mainnet 137
xDAI Chain 100

reference: https://chainlist.org/

Info

Inspired by https://github.com/Nuko973663/jpycpayqr/

License

This software is released under the MIT License, see LICENSE.txt.

Readme

Keywords

Package Sidebar

Install

npm i crypto-transfer-qr

Weekly Downloads

0

Version

1.1.5

License

MIT

Unpacked Size

7.79 kB

Total Files

8

Last publish

Collaborators

  • hayato_omori