I developed a Real-time Bitcoin Transaction Fee Slack Bot, here's how!

in #bitcoin7 years ago (edited)

I've recently developed software on Microsoft's Cloud platform Azure and Slack Bot APIs in order to come up with a nice spread of real-time Bitcoin Transaction Fees. I wanted to share with you how I've done this and perhaps you can use it yourself as well.

All source code is published on my GitHub Gist.

Architecture Overview

Step 1

User issues a configured Slash command such as /fees which sends an HTTPS Request to the Azure Function.

Step 2

  1. The Azure functions pulls real-time Bitcoin Transaction data from http://bitcoinfees.earn.com.
  2. Computes transactions fees in very slow, slow, medium, and fast categories.
  3. Does some nifty code to parse out the Slack user who invoked the slack bot
  4. Sends an HTTP webhook back to the Slack Bot

Step 3

The Slack bot sends the results back to the Slack channel

So if I go into Coinbase right now and try to send BTC to another address, it'll charge me ~$16 USD which as you can see is on the faster side (roughly 36min) of the transaction fees. If you could manually adjust the speeds, you can easily pay about $1 and just get it the next day.

Here is a screenshot of configuring the actual Slack Bot application




The Azure Function itself is written in Microsoft PowerShell code which can be downloaded here:

Enjoy!

//Support Me?

BTC - 1L19KwFizQa8d5XvbqXrDdsRADvmDePtzr
ETH - 0x3275cf9B6412e031AEC4502521a6C8E515B1a0fa
LTC - LN8WC6kXspe6z7vo9q4kS3BewKkAPf9Nzd
DASH - XotdWpZais9jB9uns2dMLKUyBvSd5aBmed
DOGE - D5K3nXUfP7JjJruQA1KWg7pnXQ1sRu7g5t