Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monero daemon #15

Open
masterofdaemon opened this issue Sep 28, 2017 · 4 comments
Open

Monero daemon #15

masterofdaemon opened this issue Sep 28, 2017 · 4 comments

Comments

@masterofdaemon
Copy link

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

@pocesar
Copy link
Owner

pocesar commented Sep 28, 2017

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

@masterofdaemon
Copy link
Author

masterofdaemon commented Sep 28, 2017

client.connect({ host: 'xmr.pool.minergate.com', port: 45560, id:'email@email.xx', 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
Copy link
Author

masterofdaemon commented Sep 29, 2017

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?

@pocesar
Copy link
Owner

pocesar commented Dec 1, 2017

will update the examples when I finish the rewrite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants