Integrations

Command-Line Usage for QSafe Wallet

QSafe Wallet provides a powerful command-line interface (CLI) for advanced users, developers, and system administrators. This guide covers the usage of the CLI, including commands, options, and examples.


1. Starting the Command-Line Interface

To use QSafe Wallet from the command line, run the following command in your terminal:

qsafe

You can also view a list of available commands by running:

qsafe -h

2. Global Options

Global options can be used with any command.

Option
Description

-h

Displays the help message for a specific command.

--testnet

Runs commands on the Testnet network.

--regtest

Runs commands on the Regtest network for local testing.

--verbose

Enables verbose mode for detailed logs.

--wallet <wallet>

Specifies the wallet to use (default is the main wallet).

Example:

qsafe --testnet --wallet=mywallet

3. Wallet Management Commands

3.1 Creating a new wallet

Usage: qsafe [options] ...

qsafe create --name <wallet_name>

Example:

qsafe create --name mywallet

3.2 Open an Existing Wallet Command:

qsafe load_wallet --name <wallet_name>

Example:

qsafe load_wallet --name mywallet

4. Sending Transactions:

4.1 Send Coins to a single address Command:

qsafe payto <address> <amount>

Example:

qsafe payto qrnA1zP1... 0.1

4.2 Send Coins to multiple addresses Command:

qsafe paytomany [[<address>,<amount>]]

Example:

qsafe paytomany [["qrnA1zP1...", 0.1], ["qrnA1zPk...", 0.2]]

5. Querying Wallet Information

5.1 Check Wallet Balance Command:

qsafe get_balance

5.2 List Transactions Command:

qsafe list_transactions

6. Advanced Features

6.1 Export Wallet Keys Command:

qsafe listaddresses | qsafe getprivatekeys

Example:

qsafe listaddresses | qsafe getprivatekeys

6.2 Import Wallet Keys Command:

qsafe importprivkey "privkey"

Example:

qsafe importprivkey 7aAsz...

7. Developer Tools

7.1 Create a Raw Transaction Command:

qsafe payto <address> <amount>

Example:

qsafe payto 1A1zP1... 0.1

7.2 Sign a Transaction Command:

qsafe signtransaction <raw_transaction>

Example:

qsafe signtransaction <raw_transaction_data>

7.3 Broadcast a Transaction Command:

qsafe broadcast <signed_transaction>

Example:

qsafe broadcast <signed_tx_data>

8. Example Workflows

8.1 Sending Coins:

  • Open your wallet:

qsafe load_wallet --name mywallet
  • Check your balance:

qsafe get_balance

9. Help and Support

For more detailed usage and advanced commands, use: qsafe -h .

Visit the official documentation for further assistance.


Types of integrations

Last updated