createQR
Callable
Parameters
url: string
The URL to encode in the QR code.
size: number = 512
Size of canvas in
px.background: string = 'white'
Background color for QR code.
color: string = 'black'
Color for QR code pattern.
Returns QRCodeStyling
The URL to encode in the QR code.
Size of canvas in px.
Background color for QR code.
Color for QR code pattern.
Create a QR code from a Solana Pay URL.