Skip to main content

quill qr-code

Reference

Print QR code for provided data e.g. principal id.

Basic usage

The basic syntax for running quill qr-code commands is:

quill qr-code [option]

Flags

FlagDescription
-h, --helpDisplays usage information.

Options

OptionDescription
--file <FILE>File the contents of which to be output as a QRCode.
--string <STRING>String to be output as a QRCode.

Examples

The quill qr-code command is primarily used to convert a message JSON file into a QR code, so as to cross an airgap.

For example, to print a QR code for a signed transfer of 5 ICP to the anonymous principal 2vxsx-fae:

quill transfer 1c7a48ba6a562aa9eaa2481a9049cdf0433b9738c992d698c31d8abf89cadc79 --amount 5 > transfer.json
quill qr-code --file transfer.json

Remarks

Quill's commands that sign messages all take a --qr parameter, so the preceding pair of commands could be shortened to the single command:

quill transfer 1c7a48ba6a562aa9eaa2481a9049cdf0433b9738c992d698c31d8abf89cadc79 --amount 5 --qr

So the primary use of this command is QR-encoding message files generated by other tools such as icx.

Your phone's built-in QR code scanner will not be able to process this message; for a compatible QR scanner, consult quill scanner-qr-code.