Using the Koii CLI

To interact with the K2 locally, you need to install the Koii CLI, create a File-System Koii wallet, and airdrop some Koii tokens into your wallet.
File-system wallets are the least secure method of storing tokens. Storing large amounts of tokens in a file-system wallet is not recommended.

Install Koii CLI

Run the command below to install the Koii command-line tools:
sh -c "$(curl -sSfL"
After installation is complete, you should see a prompt in the terminal: Please update your PATH environment variable to include the koii programs Run the command beneath this prompt to update your PATH environment.
To confirm your PATH environment has been updated run echo $PATH
Run the command below to confirm that the CLI was successfully installed:
koii --version
For Mac users, you might find if you open another terminal the koii cli would not work. Follow these steps to update PATH. - After installing koii cli, copy the PATH first - run command vi ~/.zshrc - Insert "export paste your path here" - Save and close exit it, and you are good to go!
Run koii-test-validator to run the test validator

Create a Koii Wallet

The next step is to create a Koii file system wallet locally. To get the command for creating a wallet, run:
koii address
You should see an error prompt:
Error: No default signer found, run "koii-keygen new -o /Users/<YOUR_HOME>/.config/koii/id.json" to create a new one
Run the "koii-keygen" command you're prompted to run. This command will generate an identity keypair. You can add a BIP39 passphrase for extra security or click the ENTER button for an empty passphrase.
Want to learn more about the BIP39 passphrase? Visit here.
The identity public key can now be viewed by running:
koii-keygen pubkey /Users/<YOUR_HOME>/.config/koii/id.json
Copy and save your wallet path so you can interact with any Koii stack locally.
/Users/<YOUR_HOME>/.config/koii/id.json (This is your wallet path)