STEEM BLOCKCHAIN PRICEFEED

in steem •  8 months ago 

I created a basic price feed bot for the steem blockchain

https://gitlab.com/krishiv-g/SteemPriceFeed/-/tree/main?ref_type=heads

STEEM/USD Price Feed Publisher

This project automates the process of fetching the STEEM/USD price from Binance and submitting it to the STEEM blockchain. Designed for simplicity and ease of use, it can be deployed using either Node.js with pm2 or within a Docker container.

Node.js CI Docker License: MIT

🌟 Features

  • Fetches the latest STEEM/USD price from Binance.
  • Submits the price to the STEEM blockchain automatically.
  • Easy configuration and deployment.
  • Support for both Node.js and Docker environments.

🚀 Getting Started

Follow these instructions to get the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js and npm (for running with pm2)
  • Docker (for running in a Docker container)

Configuration

Edit the config.json file to set up your environment:

{
  "apiNode": "https://api.steemit.com",
  "username": "yourSteemitUsername",
  "privateKey": "yourPrivateKey"
}

Installation

Using Node.js

Clone the repository and install dependencies:

git clone https://github.com/krishiv-g/SteemPriceFeed.git
cd SteemPriceFeed
npm install

Start the application with pm2:

pm2 start index.js

Using Docker

Build the Docker image:

docker build -t pricefeed .

Run the Docker container:

docker run -d pricefeed

📝 Usage

The application will automatically fetch the STEEM/USD price from Binance at predefined intervals and submit it to the blockchain.

💡 Contributing

Contributions are welcome! If you have a suggestion that would make this better, please fork the repo and create a pull request.

  • Fork the Project
  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgements

Feel Free to use this bot to publish price feed to steem blockchain

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!