Pure JavaScript SBit websocket library for node.js and browsers. Can be used to easily connect to and obtain data from the SBit blockchain via public apis or local nodes.
Setup
This library can be obtained through npm:
npm install sbitjs-ws
Witness node endpoints
This is a non-exhaustive list of endpoints available from the witness_node executable, which provides the API server of SBit.
The tests show several use cases, to run, simply type npm run test. The tests require a local witness node to be running, as well as an active internet connection.