From 223d9c3c44eb218fe3ae7ed7b1a814c858b53229 Mon Sep 17 00:00:00 2001 From: Biran Yucel Date: Tue, 17 Nov 2020 01:58:24 +0300 Subject: [PATCH] Add ETH gas prices bitbar. --- Cryptocurrency/Ethereum/gasnow.10s.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 Cryptocurrency/Ethereum/gasnow.10s.sh diff --git a/Cryptocurrency/Ethereum/gasnow.10s.sh b/Cryptocurrency/Ethereum/gasnow.10s.sh new file mode 100755 index 000000000..bb2b07eba --- /dev/null +++ b/Cryptocurrency/Ethereum/gasnow.10s.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# +# ETH Gas Price +# v1.0 +# Biran Yucel +# biranyucel +# ETH GasPrice forecast system. +# https://i.imgur.com/f1hPKO2.png +# https://www.gasnow.org/ +# +#ETH GasPrice forecast system based on SparkPool Pending Transaction Mempool + +response=$(curl -s https://www.gasnow.org/api/v3/gas/price\?utm_source\=:) +read code rapid fast standard slow timestamp <<<${response//[^0-9]/ } +echo "𝚵 Rapid ${rapid:0:((${#rapid} - 9))} | color=green" +echo "𝚵 Fast ${fast:0:((${#fast} - 9))} | color=orange" +echo "𝚵 Standard ${standard:0:((${#standard} - 9))} | color=blue" +echo "𝚵 Slow ${slow:0:((${#slow} - 9))} | color=purple" \ No newline at end of file