1.1.5 • Published 3 years ago

crypto-transfer-qr v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

:warning: 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"
/>
propertytypedefault value
contractstring0x6ae7dfc73e0dde2aa99ac063dcf7e8a63265108c
chainstring1
tostring0xF1c51266886c539Bd3e613ff17DBBDF653ae151e
decimalsstring18
amountnumber1000
renderAsstring ('canvas' 'svg')'canvas'
sizenumber200
bgColorstring (CSS color)"#FFFFFF"
fgColorstring (CSS color)"#000000"
levelstring ('L' 'M' 'Q' 'H')'L'
includeMarginbooleanfalse

More

Network NameChain Id
Ethereum Mainnet1
Binance Smart Chain Mainnet56
Matic(Polygon) Mainnet137
xDAI Chain100

reference: https://chainlist.org/

Info

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

License

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

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago