Automated validation bot for the Stork Oracle network. This bot helps you automate the verification process to earn rewards through the Stork Oracle system.
- Automatically fetches signed price data from Stork Oracle API
- Validates price data according to predefined rules
- Submits validation results back to the API
- Handles token refresh for continuous operation
- Displays validation statistics and user information
- Configurable validation interval
- Support for proxy servers to distribute requests
- Multi-threaded processing for improved performance
- Node.js 14.0.0 or higher
- Valid Stork Oracle account
- Clone the repository:
git clone https://github.com/sadi200/Storkbot.git && cd Storkbot
- Install dependencies:
npm install
- Configure your credentials (see Configuration section below)
The bot now uses a config.json file for configuration. When you run the bot for the first time, it will create a default config.json file that you can edit.
- Run the bot once to generate the default config file:
node index.js
- Edit the generated
config.jsonfile with your credentials:
{
"cognito": {
"region": "ap-northeast-1",
"clientId": "5msns4n49hmg3dftp2tp1t2iuh",
"userPoolId": "ap-northeast-1_M22I44OpC",
"username": "your-email@example.com",
"password": "your-password"
},
"stork": {
"intervalSeconds": 5
},
"threads": {
"maxWorkers": 1
}
}- Replace
usernameandpasswordwith your Stork Oracle account credentials
To use proxy servers for distribution of requests:
- Create a
proxies.txtfile in the project root - Add one proxy per line in any of these formats:
- HTTP proxies:
http://user:pass@host:port - SOCKS proxies:
socks5://user:pass@host:port
- HTTP proxies:
Start the bot with:
node stork-bot.js
The bot will:
- Authenticate using your credentials from config.json
- Fetch signed price data at regular intervals
- Validate each data point
- Submit validation results to Stork Oracle
- Display your current statistics
In your config.json file, you can adjust:
stork.intervalSeconds: How often the validation process runs in seconds (default: 5)threads.maxWorkers: Number of concurrent validation workers (default: 1)
- If you see authentication errors, check that your username and password in config.json are correct
- If the bot fails to start, ensure your config.json file is properly formatted JSON
- If you see token-related errors after successful authentication, the tokens.json file may be corrupted - delete it and let the bot regenerate it
- For connection issues, check your internet connection and verify the Stork Oracle API is accessible
- If using proxies, check that your proxies.txt is properly formatted and proxies are operational