Updated requirements.txt

Updated ws_talk.py
This commit is contained in:
mirai 2022-12-02 08:16:47 +03:00
parent baba14373d
commit 758171a27c
2 changed files with 9 additions and 2 deletions

View File

@ -4,3 +4,4 @@ rsa
cryptography cryptography
colorama colorama
pydantic pydantic
websocket

View File

@ -1,2 +1,8 @@
import requests import json
from websocket import create_connection
ws = create_connection("wss://ws.dogechain.info/inv")
ws.send(json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
result = ws.recv()
print (result)
ws.close()