A Node.js client that integrates Allora’s Bitcoin price prediction API with the Mind Network’s fully homomorphic encryption (FHE) consensus on Mind Chain. This tool:
- Fetches BTC price predictions from the Allora API.
- Encrypts each prediction using Mind Network’s FHE library.
- Submits encrypted predictions to Mind Chain for decentralized consensus.
- Automated Predictions: Retrieve the latest BTC price forecasts programmatically.
- End-to-End Encryption: Encrypt prediction payloads with FHE before broadcasting.
- Consensus Participation: Seamlessly interact with Mind Chain to contribute to forecasting.
-
Clone the repository
-
Install dependencies
npm install
-
Configure
-
Copy the sample configuration:
cp config_template.js config.js
-
Open
config.js
and fill in accordingly
-
Run the client:
node main.js
The script will fetch a new prediction, encrypt it, and submit it to the network.
This project is licensed under the MIT License.