Looking for some guidance on Monero Mining JSONRPC

Cryptobench
0
0

Hey guys. I am currently trying to proxy some requests made by XMRig through a python script. I was wondering if there are some documentation about the JSONRPC that's being used? Are there a default endpoint where all requests should be made to? /jsonrpc ? /json_rpc ?

I saw this is the first request that XMRig sends when it launches:

{
"id": 1,
"jsonrpc": "2.0",
"method": "login",
"params": {
"login": "someaddress",
"pass": "x",
"agent": "XMRig/6.19.0 (Linux x86_64) libuv/1.44.2 gcc/9.3.0",
"rigid": "test",
"algo": [
"cn/1",
"cn/2",
"cn/r",
"cn/fast",
"cn/half",
"cn/xao",
"cn/rto",
"cn/rwz",
"cn/zls",
"cn/double",
"cn/ccx",
"cn-lite/1",
"cn-heavy/0",
"cn-heavy/tube",
"cn-heavy/xhv",
"cn-pico",
"cn-pico/tlo",
"cn/upx2",
"rx/0",
"rx/wow",
"rx/arq",
"rx/graft",
"rx/sfx",
"rx/keva",
"argon2/chukwa",
"argon2/chukwav2",
"argon2/ninja",
"ghostrider"
]
}
}
I tried forwarding this to the following mining pool endpoint http://xmrpool.eu:5555/jsonrpc and it just resulted in :
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Any help here would be greatly appreciated! Thanks!