Mint Forest Bot is a tool for claiming and injecting energy into MintChain's forest ecosystem.
- Clone the repository:
git clone https://github.com/dante4rt/mint-forest-bot.git
- Install dependencies:
cd mint-forest-bot
npm install
- Create a
accounts.json
file in the root directory of the project. - Add your MintChain API tokens to the
accounts.json
file in the following format:
[
"Bearer xxx",
"Bearer xxx",
...
]
Note: You can obtain your MintChain API tokens by registering on the MintChain platform and retrieving them from your account settings.
To access the Authorization token required for the accounts.json
file, follow these steps:
- Open your web browser and go to the MintChain website.
- Log in to your account.
- Open the developer tools by pressing
F12
or right-clicking on the page and selecting "Inspect" or "Inspect Element". - Navigate to the "Network" tab.
- Perform a request that requires authentication, such as refreshing the page or accessing a protected resource.
- Look for the request in the list of network requests.
- Click on the request to view its details.
- In the request headers section, you should see an "Authorization" header with a value starting with "Bearer". Copy this value and paste it into the
accounts.json
file.
Ensure that you keep your API tokens secure and do not share them with anyone else.
To run the bot, execute the following command:
npm start