Pre-requisites
Tools/packages needed to be pre-installed on the server.
Install go
To create the binary from repository GoLang needs to be pre-installed on the server.
Configure AWS cli
Ask devops team to create an AWS programmatic user with read & write access to AWS s3 bucket. They will share an ACCESS_KEY, SECRET_ACCESS_KEY & REGION with you.
Install AWS cli on the server running following commands:
sudo apt install zip curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zipsudo ./aws/installConfigure AWS credentials on the server.
aws configureInput the shared
ACCESS_KEY,SECRET_ACCESS_KEY®IONone by one as asked in cli.
Configure .zcn environment.
Create
.zcndirectory in you$HOMEdirectory.mkdir .zcnMove to the above created directory and create
config.yamlfile with any editor as given below:cd .zcntouch config.yamlPaste the following inside
config.yamlfile.block_worker: https://dev.0chain.net/dns/ #Replace the network url on which you want to perform testing. signature_scheme: bls0chain min_submit: 50 # in percentage min_confirmation: 50 # in percentage confirmation_chain_length: 3 max_txn_query: 15 query_sleep_time: 3
Create zwallet binary
Clone 0chain/zwalletcli repository inside
.zcnfolder.cd ~/.zcn git clone https://github.com/0chain/zwalletcliDefault branch of zwallet repo is
staging. For any specific branch you can checkout to that branch as given below:cd ~/.zcn/zwalletcli git checkout <branch-name>Create zwallet binary.
export PATH=$PATH:/usr/local/go/bin make install cp zwallet ../
Create zbox binary
Default branch of zboxcli repo is
staging. For any specific branch you can checkout to that branch as given below:cd ~/.zcn/zboxcli git checkout <branch-name>Create zbox binary.
export PATH=$PATH:/usr/local/go/bin make install cp zbox ../
Last updated