# hexearweb

> JavaScript SDK that encapsulates the HEXEAR Node HTTP API

Latest version **1.0.0** (published 2021-07-14) · MIT license · 0 weekly downloads

## Install

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

## 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 | 1.0.0 |
| Published | 2021-07-14 |
| First published | 2021-07-14 |
| 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/hexearweb
- Repository: https://github.com/tronprotocol/hexear-web
- Issues: https://github.com/tronprotocol/hexear-web/issues
- npm.io page: https://npm.io/package/hexearweb

## 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

- 1.0.0 (latest) — 2021-07-14

## README

## What is HexearWeb?

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

HexearWeb 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 HEXEAR'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.

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

You can also ship HexearWeb in a Chrome extension.

## Installation

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

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

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

First off, in your javascript file, define HexearWeb:

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

```

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