@forest-protocols/cli v3.8.5
Forest Network CLI Tool
This is the official CLI tool to interact with the Forest Network.
Quickstart
Install it via npm:
npm i -g @forest-protocols/cliAt the startup, forest CLI creates a default configuration file located at $HOME/.forest/config.json (if it doesn't already exist). The configuration default params are listed below:
| Name | Default | Possible Values | Description |
|---|---|---|---|
| rpcHost | 127.0.0.1:8545 | An RPC host without protocol part (such as http:// or ws://) | Defines the RPC host that will be using to communicate with the blockchain |
| indexerAPI | https://indexer.forestai.io | URL of the indexer | Defines the endpoint that exposes an API with Forest data access |
| chain | anvil | anvil, optimism, optimism-sepolia, base, base-sepolia | Defines which blockchain will be used |
| account | undefined | Private key of an EOA | Defines what account will be used for blockchain transactions |
| env | production | dev or production | Defines which environment is going to be used (e.g for XMTP communication) |
| registryAddress | as per SDK definition | An EVM compatible address | Defines the address of the Forest Registry contract to be used |
| slasherAddress | as per SDK definition | An EVM compatible address | Defines the address of the Forest Slasher contract to be used |
| tokenAddress | as per SDK definition | An EVM compatible address | Defines the address of the Forest Token contract to be used |
| usdcAddress | as per SDK definition | An EVM compatible address | Defines the address of the USDC Token contract to be used |
To change them, you can use the command below:
forest config set <config name> <config value>Once you customize your configuration file, you can start using the forest CLI;
# Lists all of the providers registered in the protocol
forest get providersTo update the CLI to the newest version type:
npm update @forest-protocols/cli -g6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago