slushpool-stratum-proxy-interface

0.0.5 • Public • Published

Slushpool Stratum Proxy Interface

npm package

Requeriment

To use the interface it will be necessary to install stratum-mining-proxy on a server

stratum-mining-proxy - https://github.com/slush0/stratum-mining-proxy

Interface use

const slushpoolProxy = require('slushpool-stratum-proxy-interface');
 
var client = slushpoolProxy({
    server: "yourproxyip",
    port: 3333,
    portGetWork: 8332,
    user: "andrehrf.1",
    pass: "x",
    debug: true,
    onConnect: () => console.log('Connected to server'),
    onClose: () => console.log('Connection closed'),
    onError: (error) => console.log('Error', error.message),
    onNewMiningWork: (newWork) => console.log('[New Work]', newWork),
    onAuthorize: () => {
        //client.submit("",  "", "", "");
    },
    onSubmitResponse: (err, res) => {
        console.log(res)
    }
});

Package Sidebar

Install

npm i slushpool-stratum-proxy-interface

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • andrehrf