Skip to content

Install zwalletcli

Harshit Mehndiratta edited this page Nov 15, 2023 · 10 revisions

Linux Installation

Note: zwallet binaries are designed to function optimally with gcc 11 as the default compiler. Notably, Ubuntu 22 is equipped with gcc 11 by default. However, Ubuntu 20 initially comes with gcc 9. To upgrade the gcc version, execute the following commands:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install build-essential
sudo apt install gcc-11 g++-11
  1. Download the latest linux zwalletcli archive release from here.

  2. Open terminal and extract the downloaded archive to a specified directory using the command below.

sudo tar -xzf zwallet-linux.tar.gz --directory /usr/local/bin
  1. Navigate to the extracted directory path.
cd /usr/local/bin
  1. Run the zwallet executable by using the command below.
./zwallet

On successful installation you will see a help section:

Use Zwallet to store, send and execute smart contract on 0Chain platform.
                      

Usage:
  zwallet [command]

Available Commands:
  auth-register             Register an authorizer manually
  auth-sc-delete            Deletes an authorizer to token bridge SC manually
  auth-sc-register          Register an authorizer to token bridge SC manually
  
Use "zwallet [command] --help" for more information about a command.

Windows Installation

  1. Download the latest windows zwalletcli archive release from here.
  2. Extract the executable and dll files from archive zwallet-windows.zip

Note: In case the archive release lack the necessary DLL files, kindly download them from here and proceed to manually copy and paste these files into the extracted executable directory path.

  1. Run the executable zwallet.exe in windows command prompt.
  2. On successful installation you will see a help section similar to response below :
Use Zwallet to store, send and execute smart contract on 0chain platform.
                        
Usage:
  zwallet [command]

Available Commands:
  auth-register             Register an authorizer manually
  auth-sc-delete            Deletes an authorizer to token bridge SC manually
  auth-sc-register          Register an authorizer to token bridge SC manually

Note: The above response is shortened for formatting purposes.

macOS Installation

  1. Download the latest mac zwalletcli archive release from here.

  2. Open terminal and extract the downloaded archive to a specified directory using the command below:

sudo tar -xzf zwallet-macos.tar.gz --directory /usr/local/bin
  1. Navigate to extracted directory path .
cd /usr/local/bin
  1. Run the zwallet executable using the command below.
./zwallet

On successful installation you will see a help section similar to response below :

Use Zwallet to store, send and execute smart contract on 0Chain platform.
            
Usage:
  zwallet [command]

Available Commands:
  auth-register             Register an authorizer manually
  auth-sc-delete            Deletes an authorizer to token bridge SC manually
  auth-sc-register          Register an authorizer to token bridge SC manually

Note: The above response is shortened for formatting purposes.

Clone this wiki locally