Pure JavaScript BitShares blockchain websocket interface for node.js and browsers (v6.0.2). Allows connection to public or local BitShares API nodes for blockchain data access. Releases follow semver with active development on GitHub. Key differentiator: provides high-level API for Database and History methods with automatic connection management and subscription support. Requires Node >= 16.13.
npm install bitsharesjs-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to connect to a public BitShares node, fetch blockchain objects, and subscribe to real-time updates.
Upgrade Node to 16.13+ or use an older version of the library (e.g., 4.x).
Use named imports: const { Apis } = require('bitsharesjs-ws').Call Apis.instance('wss://...', true) or Apis.instance('wss://...', false).Install 'ws' as a dependency for Node <18: 'npm install ws'.
Ensure Apis.instance() is called once and reuse the promise via Apis.instance().init_promise.
Run 'npm install bitsharesjs-ws' and ensure the import is correct: import { Apis } from 'bitsharesjs-ws'.Use correct import: import { Apis } from 'bitsharesjs-ws' or const { Apis } = require('bitsharesjs-ws').Install the 'ws' package: 'npm install ws'.
No dependency data recorded yet.