hack-house/ws_talk.py
mirai 758171a27c Updated requirements.txt
Updated ws_talk.py
2022-12-02 08:16:47 +03:00

8 lines
218 B
Python

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()