[GUIDE][UPDATE] How to set up SOUNDAC CLI wallet and witness on docker (Use SOUNDAC official docker image )

in #soundac6 years ago (edited)

Step1 Install docker  

If you haven't installed docker, following insturctions on https://docs.docker.com/install/#supported-platforms, please choose your operating system(windows,linux,macOS) to install. 

Step2 Open terminal and use below docker command to download official soundac-source docker  image:  

docker pull soundac/soundac-source


Step3 Use the following command to run container, it can also automate run soundac daemon

 docker run -p 33333:33333 -p8090:8090 --name soundac-source -itd  soundac/soundac-source


Step4 Enter container: 

docker exec -it soundac-source /bin/bash


Step5 Use the following command to change the folder

cd /usr/local/bin/


Step6 Use the following command to start cli_wallet program

./cli_wallet


Step7 Set wallet password(create wallet)

set_password "pass…."


Step8 Unlock wallet

unlock "pass..."


Step9 Import WIF private key and active private key. If you don’t have WIF private key and active private key, Please go to https://portal.soundac.io/register apply.

import_key <WIF private key> 
import_key <active private key>


Step10 Use list_my_accounts, see your account

 list_my_accounts


Done, SOUNDAC cli_wallet is working now. You also can type
about check soundac-source version and type info check blockchain sync.

If you want to set up witness, you have to edit config.ini, following below steps:
Step1 Press ctrl+c to exit cli_wallet program and close it

Step2 Use the following command to change the folder

cd /data


Step3 Use editor to set config.ini file(witness name and WIF private key) 

vim config.ini


locate these lines:

# name of witness controlled by this node (e.g. initwitness ) 
# witness =
# WIF PRIVATE KEY to be used by one or more witnesses or miners
# private-key =    

 

edit and look like this:

# name of witness controlled by this node (e.g. initwitness )
witness = "initwitness"
# WIF PRIVATE KEY to be used by one or more witnesses or miners
private-key = 5………

Save and exit vim.


 Step4 Use the following command to exit soundac-source container

 exit


Step5 Use the following command to stop soundac-source container

docker stop soundac-source


Step6 Use the following command to run soundac-source container, it can also automate run soundac daemon

docker start  soundac-source


Step7 Enter soundac-source container: 

docker exec -it soundac-source /bin/bash

Step8 Use the following command to change the folder

cd /usr/local/bin/


Step9 Use the following command to start cli_wallet program:

./cli_wallet


Step10 Unlock wallet:

unlock "pass..."  


Step11 Announce yourself as a witness, please make sure SONDAC blockchain sync is completed and use update_witness command, the format look like this: 

update_witness "yourwitnessname" "witness_url" "yor_witness_pub_key" {} true


Done, your witness is working now.

Final step: Vote for me!!
If this post help you,  please vote for my SOUNDAC witness "wallet",
you can vote on SOUNDAC website:
https://portal.soundac.io/register
or you can vote in cli_wallet:

vote_for_witness YOURACCOUNT wallet true true 

Thank you. 

Sort:  

cool

Congratulations @musepeer! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.25
TRX 0.20
JST 0.037
BTC 96295.92
ETH 3577.12
USDT 1.00
SBD 3.74