# bnb-javascript-sdk-nobroadcast

> The Binance Chain JavaScript SDK allows browsers and Node.js clients to interact with Binance Chain. It includes the following core components.

Latest version **2.16.15** (published 2021-08-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bnb-javascript-sdk-nobroadcast
pnpm add bnb-javascript-sdk-nobroadcast
yarn add bnb-javascript-sdk-nobroadcast
bun add bnb-javascript-sdk-nobroadcast
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.16.15 |
| Published | 2021-08-07 |
| First published | 2020-08-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 23 |
| Unpacked size | 445 KB |
| Known vulnerabilities | 0 (+29 in 5 direct dependencies) |
| Install scripts | no |
| Maintainers | bithighlander |

## Links

- npm: https://www.npmjs.com/package/bnb-javascript-sdk-nobroadcast
- npm.io page: https://npm.io/package/bnb-javascript-sdk-nobroadcast

## Dependencies (23)

- [url](https://npm.io/package/url.md) ^0.11.0
- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [axios](https://npm.io/package/axios.md) 0.21.1
- [bip32](https://npm.io/package/bip32.md) ^2.0.5
- [bip39](https://npm.io/package/bip39.md) ^3.0.2
- [bn.js](https://npm.io/package/bn.js.md) ^4.11.8
- [is_js](https://npm.io/package/is_js.md) ^0.9.0
- [bech32](https://npm.io/package/bech32.md) ^1.1.3
- [big.js](https://npm.io/package/big.js.md) ^5.2.2
- [events](https://npm.io/package/events.md) ^3.0.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.19
- [ndjson](https://npm.io/package/ndjson.md) ^1.5.0
- [pumpify](https://npm.io/package/pumpify.md) ^2.0.1
- [elliptic](https://npm.io/package/elliptic.md) ^6.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [camelcase](https://npm.io/package/camelcase.md) ^5.3.1
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.9-1
- [eslint-utils](https://npm.io/package/eslint-utils.md) ^1.4.2
- [secure-random](https://npm.io/package/secure-random.md) ^1.1.2
- [tiny-secp256k1](https://npm.io/package/tiny-secp256k1.md) ^1.1.3
- [websocket-stream](https://npm.io/package/websocket-stream.md) ^5.5.0
- [crypto-browserify](https://npm.io/package/crypto-browserify.md) ^3.12.0
- [protocol-buffers-encodings](https://npm.io/package/protocol-buffers-encodings.md) ^1.1.0

## Recent versions

- 2.16.15 (latest) — 2021-08-07
- 2.16.14 — 2020-10-22
- 2.16.13 — 2020-10-22
- 2.16.11 — 2020-10-21
- 2.16.10 — 2020-10-21
- 2.16.9 — 2020-09-11
- 2.16.8 — 2020-09-01
- 2.16.7 — 2020-08-09
- 2.16.6 — 2020-08-09
- 2.16.5 — 2020-08-06

## README

The Binance Chain JavaScript SDK allows browsers and Node.js clients to interact
with Binance Chain. It includes the following core components.

- **crypto** - core cryptographic functions.
- **amino** -
  [amino](https://github.com/binance-chain/docs-site/blob/master/docs/encoding.md)
  (protobuf-like) encoding and decoding of transactions.
- **client** - implementations of Binance Chain transaction types, such as for
  transfers and trading.
- **accounts** - management of "accounts" and wallets, including seed and
  encrypted mnemonic generation.
- **ledger** - Ledger Nano S/X support via HID, U2F and Web BLE (Bluetooth).
- **rpc** - Node RPC client.
- **transaction** - Transaction Class, build and sign.

You can find more detailed documentation and examples in our
[Documentation](https://github.com/binance-chain/javascript-sdk/blob/master/docs/README.md)
pages.

## Installation

If you **do not** need Ledger support with Node.js:

```bash
$ npm i @binance-chain/javascript-sdk --no-optional
# Or:
$ yarn add @binance-chain/javascript-sdk --no-optional
```

If you **need** Ledger support with Node.js:

```bash
$ npm i @binance-chain/javascript-sdk
# Or:
$ yarn add @binance-chain/javascript-sdk
```

### Prerequisites

- **Windows users:** Please install
  [windows-build-tools](https://www.npmjs.com/package/windows-build-tools)
  first.

- **Mac users:** Make sure XCode Command Line Tools are installed:
  `xcode-select --install`.

- **Linux users:** Note that Ubuntu Xenial and newer distributions are
  recommended, especially when using Travis or other CI systems. You may need
  some dev packages to be installed on your system for USB support. On
  Debian-based distributions (like Ubuntu) you should install them with this
  command:

  ```bash
  $ sudo apt-get install libudev-dev libusb-dev usbutils
  ```

### Use with Webpack

We often see Webpack builds failing with the SDK due to the `usb` dependency,
but adding this to your Webpack config should fix that:

```js
module.exports = {
  plugins: [new webpack.IgnorePlugin(/^usb$/)],
}
```

## Testing

All new code changes should be covered with unit tests. You can run the tests
with the following command:

```bash
$ yarn test
```

Tests for the Ledger hardware wallet integration have their own suite that runs
in both node and in the browser:

```bash
$ yarn test:ledger
$ yarn test:ledger:browser
```

## Contributing

Contributions to the Binance Chain JavaScript SDK are welcome. Please ensure
that you have tested the changes with a local client and have added unit test
coverage for your code.

---
_Source: https://npm.io/package/bnb-javascript-sdk-nobroadcast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
