QRL CLI functions
$ npm install -g @theqrl/cli
$ qrl-cli COMMAND
running command...
$ qrl-cli (-v|--version|version)
@theqrl/cli/1.7.4 linux-x64 node-v12.20.0
$ qrl-cli --help [COMMAND]
USAGE
$ qrl-cli COMMAND
...qrl-cli balance ADDRESSqrl-cli create-latticeqrl-cli create-walletqrl-cli decryptqrl-cli encrypt [ADDRESS] [ITEM_PER_PAGE] [PAGE_NUMBER] [MESSAGE]qrl-cli get-keys ADDRESS ITEM_PER_PAGE PAGE_NUMBERqrl-cli help [COMMAND]qrl-cli ots ADDRESSqrl-cli receive ADDRESSqrl-cli receive-initial-message FILEqrl-cli receive-next-message INDEXqrl-cli search SEARCHqrl-cli send QUANTITYqrl-cli send-initial-message FILEqrl-cli send-next-message INDEX MESSAGEqrl-cli signqrl-cli statusqrl-cli validate ADDRESSqrl-cli verify ADDRESS ITEM_PER_PAGE PAGE_NUMBER
Get a wallet balance from the network
Get a wallet balance from the network
Queries the balance of the wallet.json file or address.
Use the (-p) flag to pass the password of encrypted wallet file.
See the documentation at https://docs.theqrl.org/developers/qrl-cli
USAGE
$ qrl-cli balance ADDRESS
ARGUMENTS
ADDRESS address to return balance for
OPTIONS
-d, --devnet queries devnet for the balance
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the balance
-p, --password=password wallet file password
-q, --quanta reports the balance in Quanta
-s, --shor reports the balance in Shor
-t, --testnet queries testnet for the balance
DESCRIPTION
Queries the balance of the wallet.json file or address.
Use the (-p) flag to pass the password of encrypted wallet file.
See the documentation at https://docs.theqrl.org/developers/qrl-cli
See code: src/commands/balance.js
Send lattice transaction
Send lattice transaction
To create a lattice transaction you will need to have a wallet file (see create-wallet command)
The generated private keys will be save to the file defined with the -o command using the same password as the one for the wallet
Documentation at https://docs.theqrl.org/developers/qrl-cli
USAGE
$ qrl-cli create-lattice
OPTIONS
-e, --ephemeralFile=ephemeralFile (required) file to export ephemeral private keys
-f, --file=file (required) wallet json file
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-i, --otsindex=otsindex (required) OTS key index
-m, --mainnet sends Lattice transaction to mainnet
-o, --output output file to save lattice private keys
-p, --password=password wallet file password
-s, --ephemeralPwd=ephemeralPwd ephemeral file password
-t, --testnet sends Lattice transaction to testnet
DESCRIPTION
To create a lattice transaction you will need to have a wallet file (see create-wallet command)
The generated private keys will be save to the file defined with the -o command using the same password as the one for
the wallet
Documentation at https://docs.theqrl.org/developers/qrl-cli
See code: src/commands/create-lattice.js
Create a QRL address
Create a QRL address
QRL addresses can be created with various tree height (-h) and hashing mechanisms (1-3)
You can output to a file (-f) in JSON and encrypt with a user set password (-p).
Documentation at https://docs.theqrl.org/developers/qrl-cli
USAGE
$ qrl-cli create-wallet
OPTIONS
-1, --sha2256 use SHA2-256 hashing mechanism
-2, --shake128 use SHAKE-128 hashing mechanism
-3, --shake256 use SHAKE-256 hashing mechanism
-f, --file=file create wallet to json file
-h, --height=height tree height (even numbers 4-18)
-p, --password=password password for encrypted wallet file
DESCRIPTION
QRL addresses can be created with various tree height (-h) and hashing mechanisms (1-3)
You can output to a file (-f) in JSON and encrypt with a user set password (-p).
Documentation at https://docs.theqrl.org/developers/qrl-cli
See code: src/commands/create-wallet.js
Encrypt message using recipient public keys
Encrypt message using recipient public keys
USAGE
$ qrl-cli decrypt
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-t, --testnet queries testnet for the OTS state
See code: src/commands/decrypt.js
Encrypt message using recipient public keys
Encrypt message using recipient public keys
USAGE
$ qrl-cli encrypt [ADDRESS] [ITEM_PER_PAGE] [PAGE_NUMBER] [MESSAGE]
ARGUMENTS
ADDRESS QRL wallet address to send message to
ITEM_PER_PAGE number of items to show per page
PAGE_NUMBER page number to retrieve
MESSAGE message to encrypt
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-h, --txhash=txhash tx hash of lattice transaction
-m, --mainnet queries mainnet for the OTS state
-s, --string=string message to encrypt
-t, --testnet queries testnet for the OTS state
See code: src/commands/encrypt.js
Get Ephemeral keys associated to a QRL address
Get Ephemeral keys associated to a QRL address
USAGE
$ qrl-cli get-keys ADDRESS ITEM_PER_PAGE PAGE_NUMBER
ARGUMENTS
ADDRESS address to return OTS state for
ITEM_PER_PAGE number of items to show per page
PAGE_NUMBER page number to retrieve
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-p, --password=password wallet file password
-t, --testnet queries testnet for the OTS state
See code: src/commands/get-keys.js
display help for qrl-cli
display help for <%= config.bin %>
USAGE
$ qrl-cli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Get a address's OTS state from the network
Get a address's OTS state from the network
Reports the next unused available OTS key. Pass either an address starting with
QQ0004 or a wallet.json file to se the next OTS. You can set the network flag with either (-t) testnet or (-m) mainnet
If the wallet file is encrypted use the -p flag to pass the wallet file encryption password.
USAGE
$ qrl-cli ots ADDRESS
ARGUMENTS
ADDRESS address to return OTS state for
OPTIONS
-d, --devnet queries devnet for the OTS state
-g, --grpc=grpc advanced: grpc endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-p, --password=password wallet file password
-t, --testnet queries testnet for the OTS state
DESCRIPTION
Reports the next unused available OTS key. Pass either an address starting with
QQ0004 or a wallet.json file to se the next OTS. You can set the network flag with either (-t) testnet or (-m) mainnet
If the wallet file is encrypted use the -p flag to pass the wallet file encryption password.
See code: src/commands/ots.js
Displays a QR code of the QRL address to receive a transaction
Displays a QR code of the QRL address to receive a transaction
Prints the QRL address in both textual and QR format. Pass either an address or a wallet.json file
If using an encrypted wallet file pass the encryption password with the (-p) flag.
USAGE
$ qrl-cli receive ADDRESS
ARGUMENTS
ADDRESS address to display QR code for
OPTIONS
-p, --password=password wallet file password
DESCRIPTION
Prints the QRL address in both textual and QR format. Pass either an address or a wallet.json file
If using an encrypted wallet file pass the encryption password with the (-p) flag.
See code: src/commands/receive.js
Receive initial message for channel opening
Receive initial message for channel opening
USAGE
$ qrl-cli receive-initial-message FILE
ARGUMENTS
FILE Local EMS file containing private keys
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-h, --txhash=txhash tx hash of lattice transaction
-m, --mainnet uses mainnet for this function
-p, --password=password EMS file password
-s, --string=string message to encrypt
-t, --testnet uses testnet for this function
See code: src/commands/receive-initial-message.js
Receive next message for channel opening
Receive next message for channel opening
USAGE
$ qrl-cli receive-next-message INDEX
ARGUMENTS
INDEX index of the message sent
OPTIONS
-g, --grpc=grpc advanced: grpc endpoint (for devnet/custom QRL network deployments)
-m, --mainnet uses mainnet for this function
-t, --testnet uses testnet for this function
See code: src/commands/receive-next-message.js
Searches for a transaction, block or address
Searches for a transaction, block or address
Fetches data about queried transaction/block/address. Defaults to mainnet; network selection flags are (-m) mainnet, (-t) testnet or (-d) devnet.
Advanced: you can use a custom defined node to query for status. Use the (-g) grpc endpoint.
USAGE
$ qrl-cli search SEARCH
ARGUMENTS
SEARCH a search term: address/txhash/block to query API for
OPTIONS
-d, --devnet queries devnet for the address/txhash/block
-g, --grpc=grpc advanced: grpc endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the address/txhash/block
-t, --testnet queries testnet for the address/txhash/block
DESCRIPTION
Fetches data about queried transaction/block/address. Defaults to mainnet; network selection flags are (-m) mainnet,
(-t) testnet or (-d) devnet.
Advanced: you can use a custom defined node to query for status. Use the (-g) grpc endpoint.
See code: src/commands/search.js
Send Quanta
Send Quanta
...
TODO
USAGE
$ qrl-cli send QUANTITY
ARGUMENTS
QUANTITY Number of Quanta (Shor if -s flag set) to send
OPTIONS
-f, --fee=fee Fee for transaction in Shor (defaults to 100 Shor)
-g, --grpc=grpc advanced: grpc endpoint (for devnet/custom QRL network deployments)
-h, --hexseed=hexseed hexseed/mnemonic of wallet from where funds should be sent
-i, --otsindex=otsindex (required) OTS key index
-j, --jsonObject=jsonObject Pass a JSON object of recipients/quantities for multi-output transactions
-m, --mainnet queries mainnet for the OTS state
-p, --password=password wallet file password
-r, --file=file JSON file of recipients
-r, --recipient=recipient QRL address of recipient
-s, --shor Send in Shor
-t, --testnet queries testnet for the OTS state
-w, --wallet=wallet json file of wallet from where funds should be sent
DESCRIPTION
...
TODO
See code: src/commands/send.js
Send initial message for channel opening
Send initial message for channel opening
USAGE
$ qrl-cli send-initial-message FILE
ARGUMENTS
FILE Local EMS file containing private keys
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-h, --txhash=txhash tx hash of lattice transaction
-m, --mainnet queries mainnet for the OTS state
-p, --password=password EMS file password
-s, --string=string message to encrypt
-t, --testnet queries testnet for the OTS state
See code: src/commands/send-initial-message.js
Send initial message for channel opening
Send initial message for channel opening
USAGE
$ qrl-cli send-next-message INDEX MESSAGE
ARGUMENTS
INDEX index of the message sent
MESSAGE message to encrypt
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-t, --testnet queries testnet for the OTS state
See code: src/commands/send-next-message.js
Sign message using saved private keys
Sign message using saved private keys
USAGE
$ qrl-cli sign
OPTIONS
-f, --file=file (required) ephemeral file containing the private keys to use
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-p, --password=password ephemeral file password
-s, --message=message (required) message to sign
-t, --testnet queries testnet for the OTS state
See code: src/commands/sign.js
Gets the network status
Gets the network status
Reports network status from the node queried. You can select either (-m) mainnet or (-t) testnet
Advanced: you can use a custom defined node to query for status. Use the (-g) grpc endpoint.
USAGE
$ qrl-cli status
OPTIONS
-d, --devnet queries devnet for the OTS state
-g, --grpc=grpc advanced: grpc endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-t, --testnet queries testnet for the OTS state
DESCRIPTION
Reports network status from the node queried. You can select either (-m) mainnet or (-t) testnet
Advanced: you can use a custom defined node to query for status. Use the (-g) grpc endpoint.
See code: src/commands/status.js
Validate a QRL address
Validate a QRL address
...
when passed a QRL address in hexstring (preceded by 'Q'), will return details about the addresses validity.
USAGE
$ qrl-cli validate ADDRESS
ARGUMENTS
ADDRESS address to validate
OPTIONS
-q, --quiet quiet mode: no address details, just return validity via exit code
DESCRIPTION
...
when passed a QRL address in hexstring (preceded by 'Q'), will return details about the addresses validity.
See code: src/commands/validate.js
Encrypt message using recipient public keys
Encrypt message using recipient public keys
USAGE
$ qrl-cli verify ADDRESS ITEM_PER_PAGE PAGE_NUMBER
ARGUMENTS
ADDRESS QRL wallet address to send message to
ITEM_PER_PAGE number of items to show per page
PAGE_NUMBER page number to retrieve
OPTIONS
-g, --grpc=grpc advanced: grcp endpoint (for devnet/custom QRL network deployments)
-m, --mainnet queries mainnet for the OTS state
-t, --testnet queries testnet for the OTS state
See code: src/commands/verify.js
