Using the Koii CLI
To interact with the K2 locally, you need to install the Koii CLI, create a 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:
After installation is complete, you should see a prompt in the terminal: Please update your PATH environment variable to include the koii programs
. Copy and 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:
To run the test validator, use command:
The K2 would run locally.
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:
If you do not have a Koii wallet in ./.config/koii/id.json
,you should see an error prompt:
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.
The identity public key can now be viewed by running:
Copy and save your wallet path so you can interact with any Koii stack locally.
Last updated