How to update your URL link for WITNESS / COMMITTEE proposal post

  1. You have to download the cli_wallet from https://drive.google.com/open?id=1_WfzUuxKryLrrccSgwechDu7hwifl8cp
  2. Start your SSH client, and connect to your server IP address
  3. Go to your folder where you have witness_node file etc..
  4. And download the file cli_wallet file with command
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1_WfzUuxKryLrrccSgwechDu7hwifl8cp' -O cli_wallet && sudo chmod +x cli_wallet

IMPORTANT: The system will ask you for your user password! Type in your user password!

After that type command below to run cli_wallet >>

./cli_wallet --wallet-file wallet.json --chain-id=5a64159ecf7214e8d072712ed9341cda01d9a8d9f8d6ac554decb41542497168 --server-rpc-endpoint=wss://api.tusc.network:8443

If all is working as it should , you will be inside the wallet

You will get meesage like this

Logging RPC to file: logs/rpc/rpc.log......

Please use the set_password method to initialize a new wallet before continuing

new >>> 

You are inside the wallet now, you type everything behind this >>> from now on!

Now you have to set password, type ( in this case my password is "test-tusc" as a test one) your own password!!!, type after >>>

set_password test-tusc

new >>> set_password test-tusc

null

Your wallet is locked, to start using it, you have to unlock it, type after >>>:

unlock test-tusc

Your terminal monitor will look like this

locked >>> unlock test-tusc

null

unlocked >>>

Now your wallet is unlocked with a password test-tusc

To import your account ( I have used my account name (urossspenko) with fake private key,

ADD YOUR ACCOUNT NAME, AND ACCOUNT PRIVATE KEY - inside " " ! and

type after unlocked>>>

import_key urosspenko,"5J3r1G141221rZ14f1f11r168fYYL1JfQ1DufrM1fnk5sf3Pof1"


where your

  • account_name_or_id: the account owning the key, in my case account name is urossspenko
  • wif_key: the private key in WIF format (the private key in WIF format, my fake private key in WIF format is 5J3r1G141221rZ14f1f11r168fYYL1JfQ1DufrM1fnk5sf3Pof1)

On the terminal monitor you will get something like this:


1926178ms th_a    wallet.cpp:511        copy_wallet_file   ] backing up wallet wallet.json to before-import-key-e0e8ddd8.wallet

1926419ms th_a    wallet.cpp:923        save_wallet_file   ] saving wallet to file wallet.json

1926420ms th_a    wallet.cpp:942        save_wallet_file   ] saved successfully wallet to tmp file wallet.json.tmp

1926420ms th_a    wallet.cpp:948        save_wallet_file   ] validated successfully tmp wallet file wallet.json.tmp

1926420ms th_a    wallet.cpp:952        save_wallet_file   ] renamed successfully tmp wallet file wallet.json.tmp

1926420ms th_a    wallet.cpp:959        save_wallet_file   ] successfully saved wallet to file wallet.json

1926420ms th_a    wallet.cpp:511        copy_wallet_file   ] backing up wallet wallet.json to after-import-key-e0e8ddd8.wallet

true


And your wallet.json is now saved with imported account "your-account-name" in my case is urosspenko.

TO UPDATE THE WITNESS URL you have to type after this:

unlocked >>>


update_witness urosspenko "https://my-web-page.com" TUSC7RQbwvRQE5i4p4HRuasPWuGty7qfxifKyaZXbK6LdEVPYyqinf true

you will get update informations in the terminal....

like this... ( of course with your own data)

{

 "ref_block_num": 591127,

 "ref_block_prefix": 3081233286,

 "expiration": "2019-12-30T11:45:42",

 "operations": [[

   9,{

    "fee": {

     "amount": 2000000,

     "asset_id": "1.1.0"

    },

    "witness": "1.5.12",

    "witness_account": "1.2.157",

        "new_url": "https://my-web-page.com",    "new_signing_key":

"TUSC7RQbwvRQE5i4p4HRuasPWuGty7qfxifKyaZXbK6LdEVPYyqinf

"

   }

  ]

 ],terminal-

 "extensions": [],

 "signatures": [

  "202805954ff157b1b36abbf2a1a06726f561e98e6a0011046f1e450d03c4d81c513a7fe9499fade44dbfec054baea9b1ecd37b33cc004445c04e5f07x8d2ddb54a"

 ]

}

type now after this :

unlocked>>> quit

quit

CONGRATULATIONS

Your WITNESS in COMMITTEE URL link is UPDATED, you can quit the wallet now.

REMARK: Fee is 20 TUSC for the WITNESS UPDATE

You can now also do a backup of the file wallet.json!! This will be in another updated tutorial.

Your Block Producer: urosspenko

Thanks you.

VERSION: V. 0.1

30.12.2019

Comments

  • This is really helpful. Thank you for taking the time to document the process!

  • In case anyone gets a TLS handshake error when trying to start cli_wallet, here are the steps I took on Ubuntu.

    I first tried:

    sudo apt-get install ca-certificates -y

    This however was already installed. I was able to fix the TLS handshake by using a cert data file:

    wget https://hg.mozilla.org/releases/mozilla-beta/file/tip/security/nss/lib/ckfw/builtins/certdata.txt

    ./cli_wallet --wallet-file wallet.json --chain-id "5a64159ecf7214e8d072712ed9341cda01d9a8d9f8d6ac554decb41542497168" -s wss://api.tusc.network:8443 -c certdata.txt

  • edited January 3

    Be sure to have the latest wallet version , and you will not get and TLS error...

    1. BUT if you read 1st LINE...that should not be a problem! (1. You have to download the cli_wallet from https://drive.google.com/open?id=1_WfzUuxKryLrrccSgwechDu7hwifl8cp


    version 2.0.181127-772-gb2919c09

    or

    Version: 2.0.181127-773-gd8430859


    To check what version you have

    type in:

    ./cli_wallet --version
    

    The answer should be:

    Version: version 2.0.181127-772-gb2919c09

    or

    Version: 2.0.181127-773-gd8430859

    if you get wallet version Version: 2.0.181127-771-gb8e7749d, you do not have the latest one.

  • ./cli_wallt --version
    

    should be ./cli_wallet --version

  • I tried all method, and still got same TLS error.

    I have Version: version 2.0.181127-772-gb2919c09 but still same error.

    Your google drive link has the download link for version 2.0.181127-771, which is older version.

  • edited January 3

    I just downloaded the one from your link, and had no problem.

     ./cli_wallet --version
    Version: 2.0.181127-771-gb8e7749d
    SHA: b8e7749d19e9be2179bb5f01e866e54ac46a1134
    Timestamp: 68 days ago
    SSL: OpenSSL 1.1.1 11 Sep 2018
    Boost: 1.65.1
    Websocket++: 0.7.0
    
  • Thanks for the comment rabTAI, command ./cli-wallet --version fixed!

Sign In or Register to comment.