Task Node CLI
The task node CLI is a helpful tool used by node operators for 4 different reasons:
Create a task staking wallet
Create a distribution wallet
Stake tokens on a task
Show all tasks
The staking CLI can be started by running the command yarn stake in the root directory of the task node. The steps are:
Clone the task node repository if you havenβt already done it.
Run
yarn buildRun
yarn stakein your terminalEnter the path to your wallet
Next you will be prompted with four options
? Select operation βΊ - Use arrow-keys. Return to submit.
β― Create a task staking wallet
Create a task distribution wallet
Stake tokens on a task
Show all tasksStaking Wallet
To create a staking wallet, select the "Create a task staking wallet" option and add the amount of KOII tokens you want to fund the wallet with.
Distribution Wallet
To create a distribution wallet, select the "Create a task distribution wallet" option and add the amount of KOII tokens you want to fund the wallet with.
Stake Tokens
To stake tokens on a task, select the "Stake tokens on a task", add the task ID of the task you want to stake on and enter the amount you want to stake.
Show All Tasks
To view all tasks, select the "Show all tasks" option. You should see an array of tasks with their name and ID.
Last updated