技术支持板块.Support Forums
How to set up SOUNDAC CLI wallet and witness on docker

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


musepeer (3) in #soundac • 2 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:release-0.6.0

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:release-0.6.0

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.


./cli_wallet -swss://node.soundac.io


# \[GUIDE\]\[UPDATE\] How to set up SOUNDAC CLI wallet and witness on docker (Use SOUNDAC official docker image ) **[musepeer (3)](https://hive.blog/@musepeer)** in [#soundac](https://hive.blog/trending/soundac) &bull; 2 years ago (edited) ![](https://images.hive.blog/768x0/https://icobrothers.media/wp-content/uploads/2018/09/SounDAC.png) ## **Step1 Install docker &nbsp;** **If you haven&#039;t installed docker, following insturctions on** [](https://docs.docker.com/install/#supported-platforms &quot;This link will take you away from hive.blog&quot;) **[https://docs.docker.com/install/#supported\-platforms](https://docs.docker.com/install/#supported-platforms &quot;This link will take you away from hive.blog&quot;)****, please choose your operating system(windows,linux,macOS) to install.&nbsp;** ## **Step2 Open terminal and use below docker command to download official soundac\-source docker &nbsp;image: &nbsp;** ``` docker pull soundac/soundac-source:release-0.6.0 ``` ## **Step3 Use the following command to run container, it can also automate run soundac daemon** ``` &nbsp;docker run&nbsp;-p 33333:33333 -p8090:8090 --name&nbsp;soundac-source -itd &nbsp;soundac/soundac-source:release-0.6.0 ``` ## **Step4 Enter container:&nbsp;** ``` 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 &quot;pass&hellip;.&quot; ``` ## **Step8 Unlock wallet** ``` unlock &quot;pass...&quot; ``` ## **Step9 Import WIF private key and active private key. If you don&rsquo;t have WIF private key and active private key, Please go to** [](https://wallet.museblockchain.com/ &quot;This link will take you away from hive.blog&quot;) [](https://portal.soundac.io/register &quot;This link will take you away from hive.blog&quot;)**[https://portal.soundac.io/register](https://portal.soundac.io/register &quot;This link will take you away from hive.blog&quot;)** **apply.** ``` import_key &lt;WIF private key&gt; ``` ``` import_key &lt;active private key&gt; ``` ## **Step10 Use list\_my\_accounts, see your account** ``` &nbsp;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)&nbsp;** ``` 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 = &quot;initwitness&quot; ``` ``` # WIF PRIVATE KEY to be used by one or more witnesses or miners ``` ``` private-key = 5&hellip;&hellip;&hellip; ``` **Save and exit vim.** ## **&nbsp;Step4 Use the following command to exit soundac\-source container** ``` &nbsp;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 &nbsp;soundac-source ``` ## **Step7 Enter soundac\-source container:&nbsp;** ``` 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 &quot;pass...&quot; ``` ## **Step11 Announce yourself as a witness, please make sure SONDAC blockchain sync is completed and use update\_witness command, the format look like this:&nbsp;** ``` update_witness &quot;yourwitnessname&quot; &quot;witness_url&quot; &quot;yor_witness_pub_key&quot; {} true ``` ## **Done, your witness is working now.** ## **Final step: Vote for me!! If this post help you, &nbsp;please vote for my SOUNDAC witness &quot;wallet&quot;, you can vote on SOUNDAC website:** [](https://portal.soundac.io/register &quot;This link will take you away from hive.blog&quot;) **[https://portal.soundac.io/register](https://portal.soundac.io/register &quot;This link will take you away from hive.blog&quot;) or you can vote in cli\_wallet:** ``` vote_for_witness YOURACCOUNT wallet true true ``` ## **Thank you.&nbsp;** ./cli_wallet -swss://node.soundac.io
edited Mar 26 '21 @.at 12:24 am

soundac/soundac-source:release-0.6.0


./cli_wallet -s "wss://node.soundac.io"


step 2: get a wallet at wallet.soundac.io and import the owner private key into wallet using import_key 5..privatekey you can get the private key from the advanced menu in the wallet. Private key starts with 5.


step 3: import_balance username [btc_private_key] true
username is the username you obtained in step2


soundac/soundac-source:release-0.6.0 ./cli_wallet -s &quot;wss://node.soundac.io&quot; step 2: get a wallet at wallet.soundac.io and import the owner private key into wallet using import_key 5..privatekey you can get the private key from the advanced menu in the wallet. Private key starts with 5. step 3: import_balance username [btc_private_key] true username is the username you obtained in step2
edited Mar 23 '21 @.at 10:17 pm
45
1
1
实时预览.live preview
至少再输入.enter atleast 10 个字符.characters
警告.WARNING: 您提及.You mentioned %MENTIONS%, 但他们也能看到此消息并且也会被通知.but they cannot see this message and will not be notified
保存中.Saving...
已保存.Saved
以.With 选.selected 取消选择帖子.deselect posts 显示所选帖子.show selected posts
本主题下的所有帖子都是.All posts under this topic will be 已删除.deleted ?
Pending draft ... 单击以继续编辑.Click to resume editing
弃稿.Discard draft