Giter VIP home page Giter VIP logo

memepool-monitor-sms's Introduction

memepool-Monitor-sms

Overview

This script monitors the Bitcoin mempool and sends an SMS alert when the fee estimate for half-hour confirmation falls below a specified threshold. It uses the mempool.space API to fetch fee estimates and the Twilio API for sending SMS alerts.

Features

  • Mempool Fee Monitoring: Retrieves the current fee estimates for Bitcoin transactions.
  • Threshold-Based Alerts: Sends an SMS when the half-hour fee estimate is below the user-defined threshold.
  • Time-based Monitoring: Skips monitoring between 1 am and 8 am to avoid unnecessary checks during low-traffic hours.
  • Twilio SMS Integration: Uses Twilio for reliable SMS notifications.

Prerequisites

  • Python 3.x
  • requests library for API requests.
  • twilio library for sending SMS messages.
  • An account and API key from mempool.space.
  • A Twilio account with an SID, Auth Token, and a Twilio phone number.

Installation

  1. Clone the repository: git clone [repository-url].
  2. Install required Python libraries: pip install requests twilio.

Configuration

  • Enter your Twilio credentials (account_sid, auth_token, twilio_number) and the recipient's phone number (recipient_number) in the script.
  • Set the threshold for fee alerts in the script.

Usage

Run the script with the command: python mempool_monitor.py. The script will continuously monitor the mempool and send an SMS alert when conditions are met.

Customization

  • Adjust the time window for skipping checks as per your requirements.
  • Modify the SMS message format and threshold in the script.

memepool-monitor-sms's People

Contributors

sid31 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.