# w3-wrapper

> Wrapper library for Ethereum Node JSON-RPC implementation

Latest version **2.1.0** (published 2022-07-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install w3-wrapper
pnpm add w3-wrapper
yarn add w3-wrapper
bun add w3-wrapper
```

## 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.1.0 |
| Published | 2022-07-31 |
| First published | 2022-07-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luxianze |

## Links

- npm: https://www.npmjs.com/package/w3-wrapper
- Repository: https://gitlab.sticpay.com/node-analysis/w3-wrapper
- npm.io page: https://npm.io/package/w3-wrapper

## Dependencies (2)

- [web3](https://npm.io/package/web3.md) ^1.7.1
- [typescript](https://npm.io/package/typescript.md) ^4.6.2

## Recent versions

- 2.1.0 (latest) — 2022-07-31

## README

# Web3js wrapper
## Introduction
A library that facilitatets interaction with Ethereum Node, implementation may vary from:

- Native JSON-RPC implementation
- Any third-party library that support JSON-RPC with Ethereum Node (web3js, Ethersjs)
---
## How-to
### Publish
To publish latest library, do:
```terminal
npm run build
git push (to main)
```

## User
In order to start using this wrapper library
```typescript
// Assign JSON-RPC api url ASAP (app/script start-up)
EthereumNodeClientSingleton.setJsonRpcAPI('http://localhost:8545');

// At other module, import the class and get the required namespaces via singleton
const nodeClient = EthereumNodeClientSingleton.getInstance();
const latestBlock = await nodeClient.Eth.getBlockNumber();
```
---

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