How to call BOSminer API in Python?

1 minute read Published: 2021-07-18
#!/usr/bin/python3
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("10.10.1.2", 4028))
s.send(b'{"command":"pools"}\n')
data = s.recv(2048)
s.close()
print(data.decode("ascii"))

Get Braiins OS+ to increase your mining devices efficiency!