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

  1. 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.

  2. 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.zip

    sudo ./aws/install
  3. Configure AWS credentials on the server.

    aws configure

    Input the shared ACCESS_KEY, SECRET_ACCESS_KEY & REGION one by one as asked in cli.

Configure .zcn environment.

  1. Create .zcn directory in you $HOME directory.

    mkdir .zcn
  2. Move to the above created directory and create config.yaml file with any editor as given below:

    cd .zcn

    touch config.yaml

    Paste the following inside config.yaml file.

    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

  1. Clone 0chain/zwalletcli repository inside .zcn folder.

    cd ~/.zcn
    git clone https://github.com/0chain/zwalletcli
  2. Default 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>
  3. Create zwallet binary.

    export PATH=$PATH:/usr/local/go/bin
    make install
    cp zwallet ../

Create zbox binary

  1. Clone 0chain/zboxcli repository inside .zcn folder.

    cd ~/.zcn
    git clone https://github.com/0chain/zboxcli
  2. 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>
  3. Create zbox binary.

    export PATH=$PATH:/usr/local/go/bin
    make install
    cp zbox ../

Last updated