# bulletweb

> JavaScript SDK that encapsulates the BULLET Node HTTP API

Latest version **4.0.0** (published 2021-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install bulletweb
pnpm add bulletweb
yarn add bulletweb
bun add bulletweb
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-07-08 |
| First published | 2021-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 3.4 MB |
| Known vulnerabilities | 0 (+28 in 3 direct dependencies) |
| Install scripts | no |
| Author | Kondax |
| Maintainers | karthigaosiz |

## Links

- npm: https://www.npmjs.com/package/bulletweb
- Repository: https://github.com/tronprotocol/bullet-web
- Issues: https://github.com/tronprotocol/bullet-web/issues
- npm.io page: https://npm.io/package/bulletweb

## Dependencies (10)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [jssha](https://npm.io/package/jssha.md) ^2.3.1
- [ethers](https://npm.io/package/ethers.md) ^4.0.7
- [semver](https://npm.io/package/semver.md) ^5.6.0
- [elliptic](https://npm.io/package/elliptic.md) ^6.4.1
- [validator](https://npm.io/package/validator.md) ^10.7.1
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^7.2.1
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.26.0
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^3.1.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0

## Recent versions

- 4.0.0 (latest) — 2021-07-08

## README

## What is BulletWeb?

__[Bullet Web - Developer Document](https://developers.bullet.network/docs/bullet-web-intro)__

BulletWeb aims to deliver a unified, seamless development experience influenced by Ethereum's [Web3](https://github.com/ethereum/web3.js/) implementation. We have taken the core ideas and expanded upon it to unlock the functionality of BULLET's unique feature set along with offering new tools for integrating DApps in the browser, Node.js and IoT devices.

## Compatibility
- Version built for Node.js v6 and above
- Version built for browsers with more than 0.25% market share

You can access either version specifically from the [dist](dist) folder.

BulletWeb is also compatible with frontend frameworks such as:
- Angular 
- React
- Vue.

You can also ship BulletWeb in a Chrome extension.

## Installation

### Node.js
```bash
npm install bulletweb
```
or
```bash
yarn add bulletweb
```

### Browser
First, don't use the release section of this repo, it has not updated in a long time.

Then easiest way to use BulletWeb in a browser is to install it as above and copy the dist file to your working folder. For example:
```
cp node_modules/bulletweb/dist/BulletWeb.js ./js/bulletweb.js
```
so that you can call it in your HTML page as
```
<script src="./js/bulletweb.js"><script>
```
## Creating an Instance

First off, in your javascript file, define BulletWeb:

```js
const BulletWeb = require('bulletweb')
```
The easiest way to instantiate bulletWeb is to run
```js
const bulletWeb = new BulletWeb({
     fullNode: 'http://ip:port',
    solidityNode: 'http://ip:port'
    eventServer: 'http://ip:port',
    privateKey: '...'
})
```
but you can continue to use the old way:
```js
const bulletWeb = new BulletWeb(fullNode, solidityNode, eventServer, privateKey)

```

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