Command
New-ImageQRCodeBitcoin
Generates a QR code for Bitcoin-like payments.
Syntax
New-ImageQRCodeBitcoin
[-Address] <String>
[[-Amount] <Double>]
[-BackgroundColor <Color>]
[-Currency] <Bitcoin| BitcoinCash| Litecoin>
[-FilePath] <String>
[-ForegroundColor <Color>]
[[-Label] <String>]
[[-Message] <String>]
[-PixelSize <Int32>]
[-Show]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Use this cmdlet to create payment request QR codes for Bitcoin and similar supported cryptocurrencies.
Examples
Create a basic Bitcoin payment QR
New-ImageQRCodeBitcoin -Currency Bitcoin -Address '1BoatSLRHtKNngkdXEeobR76b53LETtpyT' -Amount 0.01 -FilePath btc.pngCreates a payment QR code that includes the destination address and requested amount.
Create a crypto donation QR code with label and note
New-ImageQRCodeBitcoin -Currency Bitcoin -Address '1BoatSLRHtKNngkdXEeobR76b53LETtpyT' -Amount 0.005 -Label 'Evotec Donation' -Message 'Thank you for supporting the project' -FilePath donation.png -ForegroundColor DarkOrange -PixelSize 18 -ShowGenerates a donation-style payment QR code and opens it after creation.
Parameters
- -Address String
- Destination address.
- -Amount Double
- Optional payment amount.
- -BackgroundColor Color
- Background color of the QR code.
- -Currency QrBitcoinLikeType
- Type of cryptocurrency.
- Possible values:
Bitcoin,BitcoinCash,Litecoin - -FilePath String
- The image format is inferred from the file extension.
- -ForegroundColor Color
- Foreground color of QR modules.
- -Label String
- Optional transaction label.
- -Message String
- Optional message.
- -PixelSize Int32
- Pixel size for each QR module.
- -Show SwitchParameter
- Opens the image after creation.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.