Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 563 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 563 Bytes

stratum-protocol-client

Stratum protocol client for Node.js

Install

$ npm install stratum-protocol-client --save

How to use

const stratum = require("stratum-protocol-client")({
    host: 'scrypt.usa.nicehash.com',
    port: 3333,
    worker: {
        name: '13RrZ98B9dF2CqD4yqhYSkjGLVTPZ1sasx',
        pass: 'x',
        subscribe: 'protocol.tester'
    }
});
stratum.connect()
    .then(() => stratum.subscribe())
    .then(() => stratum.authorize())
    .then(() => stratum.submit())

Run tests

$ npm run test