Solana CLI
To interact with zkNEO's confidential functionality, you’ll need to install the Solana Command Line Interface (CLI).
Step 1: Open Your Terminal
To start, open the terminal application:
macOS: Open Terminal from Applications > Utilities.
Windows: Use PowerShell or, for a Linux-like environment, install Windows Subsystem for Linux (WSL) and use Ubuntu or another Linux terminal.
Linux: Open your system’s default terminal application.
Step 2: Install Solana CLI
macOS and Linux Installation
Copy and paste the following command to download and install the Solana CLI:
Once installed, add Solana CLI to your path. Copy and paste this command to do so:
Windows Installation
If you’re using Windows PowerShell, follow these steps:
First, install Windows Subsystem for Linux (WSL) if you haven’t already. Follow Microsoft’s guide to set it up with Ubuntu.
Open your WSL terminal (e.g., Ubuntu) and run the same commands as the macOS and Linux Installation steps above to install Solana CLI within your WSL environment.
Step 3: Verify the Installation
To confirm Solana CLI was installed correctly, check the version by running:
You should see a version number, which means the installation was successful.
Step 4: Configure Solana CLI for Mainnet
Now, set up Solana CLI to interact with the main Solana network, also called Mainnet Beta.
Run the following command to set the mainnet as your default network:
This ensures that any transactions you perform are on the main Solana network (as opposed to test networks).
Confirm the configuration by running:
You should see the URL
https://api.mainnet-beta.solana.com
listed under RPC URL.
Step 5: Verify Solana CLI and SPL Token CLI
To check that both Solana CLI and SPL Token CLI tools are ready, run:
Both commands should return version numbers, confirming the CLI is ready to use.
If any of the steps here don’t work as expected, try running through the commands again or refer to the official Solana CLI documentation for further details.
Last updated