Agent Pre-Reqs

Pre-requirements for Croncat Agent

Before you start installing the Croncat Agent Cli you need to prepare your computer/server/vps.

Cosmos

Please see the launch-tools repository for details on getting your agent set up.

NEAR Protocol

NEAR CLI

Before you start, you might want to ensure your system is up to date.

sudo apt update && sudo apt upgrade -y

Install Nodes.js and NPM:

curl -sL https://deb.nodesource.com/setup_17.x | sudo -E bash -
sudo apt install build-essential nodejs
PATH="$PATH"

Check NodeJS and NPM version:

node -v

response: v17.x.x

npm -v

response: 8.x.x

And install NEAR-Cli:

sudo npm install -g near-cli

NEAR Account

If you do not have a NEAR Account yet, please create one Mainnet, Testnet, Guildnet.

Environment

The environment will need to be set each time a new shell is launched to select the correct network.

export NEAR_ENV=<network>

Where :

  • mainnet
  • testnet
  • guildnet

    Example:

export NEAR_ENV=mainnet

And add to the ~/.bashrc file (or ~/.zshrc, etc. if your system uses a different one) so that you don't have to enter the command every time you log in

echo 'export NEAR_ENV=<network>' >> ~/.bashrc

NEAR Login

And now you can make a login:

near login

This command launches a web browser allowing for the authorization of a full access key to be copied locally.