Hello world!

Cryptocurrency

Hash rate(Python)

xyz1 2022. 4. 16. 12:36

해시레이트(hashrate) 연산 처리능력을 측정하는 단위로 해시 속도를 의미한다. 작업증명(PoW) 합의 알고리즘을 사용하는 모든 암호화폐에서 나타나며, 일반적으로 해시레이트가 높아져 연산량이 많아질 경우, 더 빠른 채굴이 이루어지기 때문에 채굴 난이도가 높아진다. (http://wiki.hash.kr/index.php/%ED%95%B4%EC%8B%9C%EB%A0%88%EC%9D%B4%ED%8A%B8)

import requests

url = 'https://blockchain.info/q/hashrate'

html = requests.get(url)
gigahash = int(html.text)
terahash = round(gigahash/1000,2)/1000000

print(terahash)

188.80

github:https://github.com/9521ljh/Cryptocurrency

'Cryptocurrency' 카테고리의 다른 글

Binance 자동매매 만들어드립니다.  (0) 2022.07.12
업비트 자동매매(python) 만들어드립니다.  (0) 2022.06.02
김프 값 구하기(Python)  (0) 2022.04.16
Fear and greed(Python)  (0) 2022.04.16