Author Topic: CLI wallet howto?  (Read 2819 times)

0 Members and 1 Guest are viewing this topic.

Offline fundomatic

  • Full Member
  • ***
  • Posts: 149
    • View Profile

For backups:
wallet_export_to_json /path/file.json
wallet_create_from_json /path/file.json

I tested exporting, importing on a blank install, changing passphrase. All seems fine.

My "client_version": "v0.4.25-RC1" has

wallet_backup_create
wallet_backup_restore

Also handling json copies.

Offline gamey

  • Hero Member
  • *****
  • Posts: 2253
    • View Profile
Now a basic CLI how to could be done, but you'd sort of need to define what you are attempting to do ?  Most people who use the CLI are going to be delegates, and those who aren't delegates will use the GUI.  So I would be at a loss as to where to start up such a how-to.

It's basically, how to import your PTS wallet, and how to vote. I'm asking for this because I can't get the linux GUI to compile, and no precompiled binaries are provided (yet).

This was a first edition portion that refers to importing PTS wallet.  http://wiki.bitshares.org/index.php/BitShares_X_How-To#Attempting_a_wallet_import_to_receive_BTSX_from_February_28th_snapshot

I am not sure about a nice voting walk-thru but I would suggest listening to the latest currently https://soundcloud.com/beyond-bitcoin-hangouts/bitshares-community-and-developer-hangout-9-5-2014
I speak for myself and only myself.

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Now a basic CLI how to could be done, but you'd sort of need to define what you are attempting to do ?  Most people who use the CLI are going to be delegates, and those who aren't delegates will use the GUI.  So I would be at a loss as to where to start up such a how-to.

It's basically, how to import your PTS wallet, and how to vote. I'm asking for this because I can't get the linux GUI to compile, and no precompiled binaries are provided (yet).
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline gamey

  • Hero Member
  • *****
  • Posts: 2253
    • View Profile
Hii,

Is there a user guide or simple howto for the CLI wallet?
I've seen http://wiki.bitshares.org/index.php/Useful_Wallet_Commands
but it is more a reference listing commands, and not a howto explaining steps to take to safely use the CLI wallet.


Thx

That wiki entry isn't the most useful, but was just  a real basic attempt at grouping cli commands.  The problem is they change etc, and so it is questionable how much effort should be put into that sort of documentation.

Now a basic CLI how to could be done, but you'd sort of need to define what you are attempting to do ?  Most people who use the CLI are going to be delegates, and those who aren't delegates will use the GUI.  So I would be at a loss as to where to start up such a how-to.
I speak for myself and only myself.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
I can't do anything, unsure if it's because of the incredible spam or what, but

--- there are now 87 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 91 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 91 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 87 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 87 active connections to the p2p network
--- there are now 86 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 83 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 83 active connections to the p2p network
--- there are now 82 active connections to the p2p network
--- there are now 83 active connections to the p2p network
(wallet closed) >>> wallet_create
wallet_name: Bog
new_passphrase: --- there are now 84 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 86 active connections to the p2p network
--- there are now 87 active connections to the p2p network
--- there are now 88 active connections to the p2p network
wallet_name: Bog
Command aborted
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network

that's over like 1 second
just ignore the spam .. the input will continue as intended ..
you may reduce the number of connections in the config.json file in your bitsharesX home directory (see "getinfo")

Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Thanks for the help, I'd also like to know how to quieten the announcement of the number of active connections.
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline zvs

  • Full Member
  • ***
  • Posts: 193
    • View Profile
I can't do anything, unsure if it's because of the incredible spam or what, but

--- there are now 87 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 91 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 91 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 87 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 87 active connections to the p2p network
--- there are now 86 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 83 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 83 active connections to the p2p network
--- there are now 82 active connections to the p2p network
--- there are now 83 active connections to the p2p network
(wallet closed) >>> wallet_create
wallet_name: Bog
new_passphrase: --- there are now 84 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 84 active connections to the p2p network
--- there are now 85 active connections to the p2p network
--- there are now 86 active connections to the p2p network
--- there are now 87 active connections to the p2p network
--- there are now 88 active connections to the p2p network
wallet_name: Bog
Command aborted
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 88 active connections to the p2p network
--- there are now 89 active connections to the p2p network
--- there are now 90 active connections to the p2p network
--- there are now 89 active connections to the p2p network

that's over like 1 second
Pls to join Primedice 3 and frolic about merrily whilst gambling awe-inspiring quantities of bitcoins. The power of Christ compels you.

I have a dogecoin p2pool at Nogleg.

Offline rb2

  • Newbie
  • *
  • Posts: 16
    • View Profile
Here are my notes on creating a wallet with the cli:


interesting links
https://github.com/BitShares/bitshares_toolkit/wiki/Bitshares-commands:-Wallet
http://wiki.bitshares.org/index.php/Useful_Wallet_Commands#List_wallets


Compile the bitsharesx as described  in the readme, but don't build the web wallet or qt interface.
Then:

cd programs/client
./bitshares_client

wallet_create $name
 -> will ask for password

close
 -> will close the wallet

open
 -> will ask for wallet name to open. Stays locked

unlock
 -> will ask for password to unlock wallet


Now we need to create an account (http://wiki.bitshares.org/index.php/BitShares_X_Glossary#Account )

wallet_account_create
  -> will ask for name
  -> will return public info to share with payers in the form btsx:$myaccountname:GFDSJGKSDFHGZE234R2ANFD

ask some btsx to register you name. The address to give is the last part, in this case: GFDSJGKSDFHGZE234R2ANFD
Then check you balance:

balance
  -> will show you the balance of your accounts

wallet_account_register to register account on blockchain

wallet_account_transaction_history to list transactions

For backups:
wallet_export_to_json /path/file.json
wallet_create_from_json /path/file.json

I tested exporting, importing on a blank install, changing passphrase. All seems fine.


Offline jernau

  • Full Member
  • ***
  • Posts: 78
    • View Profile
I've also been looking for a helpful beginners tutorial to the CLI.
PTS: PgiEykg2RATYwWYhFtyNRqwSxQyEApLSmW

Offline rb2

  • Newbie
  • *
  • Posts: 16
    • View Profile
Hii,

Is there a user guide or simple howto for the CLI wallet?
I've seen http://wiki.bitshares.org/index.php/Useful_Wallet_Commands
but it is more a reference listing commands, and not a howto explaining steps to take to safely use the CLI wallet.


Thx