node-stratum icon indicating copy to clipboard operation
node-stratum copied to clipboard

Monero daemon

Open masterofdaemon opened this issue 6 years ago • 4 comments

Can i use my monerod with you module to use miner of this guy: https://github.com/howardchung/jsminer ?

masterofdaemon avatar Sep 28 '17 06:09 masterofdaemon

usually you'd want to communicate directly to JSON RPC interfaces. AJAX is an on-top-of-HTTP method, and relies on HTTP headers for either urlencoded or form data POSTS and GET. stratum is its own protocol using JSON RPC as a transport, so you would not be able to use it as-is

now, if you're talking strictly about monero daemon RPC, then you might use a proxy and it would work

pocesar avatar Sep 28 '17 16:09 pocesar

client.connect({ host: 'xmr.pool.minergate.com', port: 45560, id:'[email protected]', password:require('crypto').createHash('sha256').update('x').digest('hex') }).then(function(socket) { console.log('Connected! subscribing'); socket.stratumSubscribe(); }); And i get:

[Error: Stratum request without method or result field]

masterofdaemon avatar Sep 28 '17 20:09 masterofdaemon

now I get this from the pool(onmine): {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK"}} And i don't know what to do next, can you show me how to chat with pool, some example?

masterofdaemon avatar Sep 29 '17 19:09 masterofdaemon

will update the examples when I finish the rewrite

pocesar avatar Dec 01 '17 06:12 pocesar