Documentation
  • INTRODUCTION
  • USERS
    • White Paper
    • Main features of CyberWay
    • Bandwidth differences between EOS and CyberWay
    • Bandwidth implementation
    • How to Launch EOS dApps on CyberWay
    • Glossary
  • DEVELOPMENT ENVIRONMENT
    • Core Concepts
    • 1 Before You Begin
    • 2 Install the CDT
    • 3 Create Development Wallet
    • 4 Start keosd and nodeos
    • 5 Create Test Accounts
  • SOFTWARE MANUALS
    • Core
      • nodeos
      • cleos
      • keosd
      • cyberway.cdt
    • How To Guides
      • How To Ban An Unwanted Account
      • How To Calculate Reward For An Author
      • How To Calculate Reward For A Beneficiary
      • How To Calculate Reward For A Curator
      • How To Create A Wallet
      • How To Create An Account
      • How To Create A Proxy Account
      • How To Create Key Pair
      • How To Delegate Resources
      • How To Deploy A Node Using A Snapshot
      • How To Deploy A Smart Contract
      • How To Get Account Information
      • How To Get Block Information
      • How To Get Transaction Information
      • How To Import A Key
      • How To Link Permission
      • How To List All Key Pair
      • How To Stake Tokens
      • How To Stop A Node Using Docker
      • How To Submit A Proposal For HardFork
      • How To Transfer Tokens To A Worker
      • How To Undelegate Resources
      • How To Unlink Permission
      • How To Unstake Tokens
      • How To Vote
    • API Reference
      • Nodeos Chain API
      • Nodeos Producer API
      • Nodeos Net API
    • Cleos Command Reference
      • Convert
      • Create
      • Get
      • Multisig
      • Net
      • Push
      • Set
      • Sign
      • System
      • Transfer
      • Version
      • Wallet
    • Explorer Command Reference
      • How To Check Your Balance
      • How To Find Out Account ID
      • How To Convert Golos To Golos Power And Vice Versa
      • How To Stake Tokens CYBER
      • How To Transfer Funds From One Account To Another
      • How To Transfer Funds From Pending to Liquid
      • How To Bay Stake
      • How To Withdraw Stake
      • How To Vote For A Validator
      • How To Revoke Your Vote For A Validator
      • How To Bay Vesting Using Explorer
      • How To Vote For A Witness
      • How To Revoke Your Vote For A Witness
  • DEVPORTAL
    • System Contracts
      • BIOS
      • Domain names
      • Govern
      • Multi-Signature
      • Stake
      • Tokens
    • Application Contracts
      • Golos Contracts
        • Charge
        • Control
        • Emission
        • Publication
        • Referral program
        • Social
        • Vesting
        • Memo-keys
        • Determining Rewards for a Post
    • Guide to Creating and Deploying an Application on CyberWay
      • 1 Preliminary Work
      • 2 Creating a Simple Contract
      • 3 Creating Tokens
      • 4 Understanding ABI Files
      • 5 Data Persistence
      • 6 Secondary Indexes
      • 7 Adding Inline Actions
      • 8 Inline Action to External Contract
      • 9 Conclusion
    • The cyberway_wallet designed for the Bittrex market
    • The Event Model
  • VALIDATORS
    • Testnet Installation Guide
      • 1 General
      • 2 Configuring the Docker Image
      • 3 Create Container
      • 4 Connecting to a Node
      • 5 List of Commands Applicable to Any Kind of Container
    • Mainnet Connection Guide
      • Docker-Compose Start-up Instructions
      • APPENDIX A
      • APPENDIX B
    • Golos Blockchain Transit
    • How to join CyberWay for those who are interested in being validators ?
    • Stake Usage Guide
    • Regulations for CyberWay validators. Voting for Validators
Powered by GitBook
On this page
  • Wallet Create
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Open
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Lock
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Lock All
  • Description
  • Positional Parameters
  • Options
  • Command
  • Wallet Unlock
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Import
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Remove Key
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Create Key
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet List
  • Description
  • Positional Parameters
  • Options
  • Command
  • Wallet Keys
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  • Wallet Private Keys
  • Description
  • Positional Parameters
  • Options
  • Command
  • Examples
  1. SOFTWARE MANUALS
  2. Cleos Command Reference

Wallet

PreviousVersionNextExplorer Command Reference

Last updated 5 years ago

Description The subcommands can be used to interact with local wallet.

Subcommands

  • — Create a new wallet locally.

  • — Open an existing wallet.

  • — Lock wallet.

  • — Lock all unlocked wallets.

  • — Unlock wallet.

  • — Import private key into wallet.

  • — Remove key from wallet.

  • — Create private key within wallet.

  • — List opened wallets.

  • — List of public keys from all unlocked wallets.

  • — List of private keys from an unlocked wallet in WIF or PVT_R1 format.

Wallet Create

Description

This subcommand creates a wallet with the specified name. If no name is given, the wallet will be created with the name 'default'.

Positional Parameters

None.

Options

  • -n, --name TEXT — The name of the new wallet.

  • -f, --file TEXT — Name of file to write wallet password output to (must be set, unless --to-console is passed).

  • --to-console — Print password to console.

Command

$ cleos wallet create [OPTIONS]

Examples

$ cleos wallet create --name=walletname1 --to-console

Wallet Open

Description

This subcommand can be used to open an existing wallet.

Positional Parameters

None.

Options

  • -n, --name TEXT — The name of the wallet to open.

Command

$ cleos wallet open [OPTIONS]

Examples

Example 1

$ cleos wallet open

Example 2

$ cleos wallet open --name=walletname1

Output

Opened: walletname1

Wallet Lock

Description

This subcommand can be used to lock wallet.

Positional Parameters

None.

Options

  • -n, --name TEXT — The name of the wallet to lock.

Command

$ cleos wallet lock [OPTIONS]

Examples

Example 1

$ cleos wallet lock

Example 2

$ cleos wallet lock --name=walletname1

Output

Locked: walletname1

Wallet Lock All

Description

This subcommand can be used to lock all unlocked wallets.

Positional Parameters

None.

Options

None.

Command

$ cleos wallet lock_all

Output

Locked All Wallets

Wallet Unlock

Description

This subcommand can be used to unlock wallet.

Positional Parameters

None.

Options

  • -n, --name TEXT — The name of the wallet to unlock.

Command

$ cleos wallet unlock [OPTIONS]

Examples

To unlock a wallet, specify the password provided when it was created.

$ cleos wallet unlock --name=walletname1 --password=XXXXXXXX

Output

Unlocked: walletname1

Wallet Import

Description

This subcommand can be used to import private key into wallet.

Positional Parameters

None.

Options

  • -n,--name TEXT — The name of the wallet to import key into.

  • --private-key TEXT — Private key in WIF format to import.

Command

$ cleos wallet import [OPTIONS]

Examples

$ cleos wallet import --name=walletname1 --private-key=3Rft...Uh6

Wallet Remove Key

Description

This subcommand can be used to remove key from wallet.

Positional Parameters

  • (string) key — Public key in WIF format to remove (required).

Options

  • -n, --name TEXT — The name of the wallet to remove key from.

Command

$ cleos wallet remove_key <key> [OPTIONS]

Examples

$ cleos wallet remove_key GLS8PE...rS3T --name=walletname1 --password=XXXXXXXX

Wallet Create Key

Description

This subcommand can be used to creates a key pair within the wallet so that you don't need to manually import it like you would with cleos create key. By default, this will create a key with the type "favored" by the wallet, which is a "K1" key. This subcommand also lets you create a key in "R1" format.

Positional Parameters

  • (string) key_type — "K1" or "R1" key type to create. "K1" generates privileged key. Defaults to "K1".

Options

  • -n, --name TEXT — The name of the wallet to create key into.

Command

$ cleos wallet create_key [OPTIONS]

Examples

$ cleos wallet create_key K1 --name-walletname1
Created new private key with a public key of: "GLS8PE...6tR, X6P...5EfG"

Wallet List

Description

The subcommand can be used to list opened wallets ("*" means "unlocked").

Positional Parameters

None.

Options

None.

Command

$ cleos wallet list

Output

Wallets:
[
  "default *",
  "walletname1 *"
]

or when there are no wallets:

Wallets:
[
]

Wallet Keys

Description

The subcommand can be used to list of public keys from all unlocked wallets. These are the keys that could be used to sign transactions.

Positional Parameters

None.

Options

None.

Command

$ cleos wallet keys

Output

[[
    "GLS6MR...qcVpscN",
    "PbwdL6...FSSwsST3"
  ]
]

Examples

$ cleos wallet

Wallet Private Keys

Description

The subcommand can be used to list of private keys from an unlocked wallet in WIF or PVT_R1 format. It is possible to query for the public and private key pairs of an individual wallet. The wallet must already be unlocked and you must give the password again.

Positional Parameters

None.

Options

  • -n, --name TEXT — The name of the wallet to list keys from.

  • --password TEXT — The password returned by wallet create.

Command

$ cleos wallet private_keys [OPTIONS]

Examples

$ cleos wallet private_keys --name-walletname1 --password=XXXXXXXX

--password TEXT — The password returned by .

--password TEXT — The password returned by .

Wallet Create
Wallet Open
Wallet Lock
Wallet Lock All
Wallet Unlock
Wallet Import
Wallet Remove Key
Wallet Create Key
Wallet List
Wallet Keys
Wallet Private Keys
wallet create
wallet create