Mallet, the minimal wallet, is the command line interface used to send transactions, deploy smart contracts, and interact with the IELE and KEVM testnets.
- cross-platform and has been tested on Linux, Mac and Windows.
- embeddable: it can be imported as a library by other programs.
You can find the source code at https://github.com/input-output-hk/mallet.
On Linux and Mac, you will require Node.js 10.4.0, or the latest version, and the Git tools. For Windows, you will also need the Windows Subsystem for Linux (WSL).
Enabling the Windows subsystem for Linux
Although there is a Node.js version for Windows, we have detected installation problems with it. Therefore, we recommend installing Node.js through the WSL.
Enable the Windows Subsystem for Linux option:
- Click the [Start] button.
- Type ‘powershell’.
- Right-click it and select ‘Run as administrator’.
PS C:/> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Restart when prompted.
- Go to https://aka.ms/wslstore
Select Ubuntu 18.04 distribution
- Enable Windows developer mode:
- Open the search function and type ‘settings’.
- Click: ‘Update & Security.’
- Click on ‘For developers’.
- Enable developer mode.
- Open a command prompt (‘powershell’).
- Type bash.
From this point on, installing Node.js is the same as installing it on any Linux box. Follow the next section with instructions for Linux.
Installing Node.js for Linux and MacOS
Open a terminal program and execute:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs
Once Node.js is installed, you can install Mallet.
Installing Mallet 2.0
To get the latest version of Mallet, you first need to clone the repository at https://github.com/input-output-hk/mallet, and then install with npm. To do this:
- Open a terminal window and type in:
git clone https://github.com/input-output-hk/mallet
- After cloning the repository, execute:
cd mallet npm install
This will download and install Mallet and its dependencies.
To check your installation, execute Mallet’s help option:
If the usage information opens correctly when you execute –help, it means you have successfully installed mallet.
Otherwise, please repeat the process or feel free to contact us, we can help you: