# genesisweb

> JavaScript SDK that encapsulates the GENESIS Node HTTP API

Latest version **2.3.2** (published 2021-10-03) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.3.2 |
| Published | 2021-10-03 |
| First published | 2021-10-03 |
| 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 | neoblock8 |

## Links

- npm: https://www.npmjs.com/package/genesisweb
- npm.io page: https://npm.io/package/genesisweb

## Dependencies (10)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [jssha](https://npm.io/package/jssha.md) ^2.3.2
- [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

- 2.3.2 (latest) — 2021-10-03

## README

## What is GenesisWeb?

GenesisWeb 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 GENESIS'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.

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

You can also ship GenesisWeb in a Chrome extension.

## Installation

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

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

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

## Creating an Instance

First off, in your javascript file, define GenesisWeb:

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

```

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