mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-15 12:50:38 +02:00
Update spvblock.py
This commit is contained in:
parent
4cb1610496
commit
3ced4c6dbe
1 changed files with 4 additions and 4 deletions
|
|
@ -88,7 +88,7 @@ def counttxs():
|
|||
an = din
|
||||
bs = str(an)
|
||||
a = bs
|
||||
r = requests.get("https://bitcoinexplorer.org/api/mempool/summary")
|
||||
r = requests.get("https://bitcoinexplorer.org/api/mempool/summary | jq | grep -E "size" | awk '{print $2}' | tr -d '"' | tr -d ','")
|
||||
r.headers['Content-Type']
|
||||
n = r.text
|
||||
di = json.loads(n)
|
||||
|
|
@ -117,7 +117,7 @@ def counttxs():
|
|||
din = json.loads(qs)
|
||||
an = din
|
||||
bs = str(an)
|
||||
r = requests.get("https://bitcoinexplorer.org/api/mempool/summary")
|
||||
r = requests.get("https://bitcoinexplorer.org/api/mempool/summary | jq | grep -E "size" | awk '{print $2}' | tr -d '"' | tr -d ','")
|
||||
r.headers['Content-Type']
|
||||
n = r.text
|
||||
di = json.loads(n)
|
||||
|
|
@ -146,7 +146,7 @@ def counttxs():
|
|||
din = json.loads(qs)
|
||||
an = din
|
||||
bs = str(an)
|
||||
r = requests.get("https://bitcoinexplorer.org/api/mempool/summary")
|
||||
r = requests.get("https://bitcoinexplorer.org/api/mempool/summary | jq | grep -E "size" | awk '{print $2}' | tr -d '"' | tr -d ','")
|
||||
print("\n\n\n")
|
||||
output = render(
|
||||
bs,
|
||||
|
|
@ -3544,7 +3544,7 @@ def getrawtx(): # show confirmations from transactions
|
|||
|
||||
def runthenumbers():
|
||||
try:
|
||||
conn = """curl -s https://bitcoinexplorer.org/api/blockchain/coins | grep -E "supply""""
|
||||
conn = """curl -s https://bitcoinexplorer.org/api/blockchain/coins | jq | grep -E "supply" | awk '{print $2}' | tr -d '"' | tr -d ','"""
|
||||
a = os.popen(conn).read()
|
||||
clear()
|
||||
blogo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue