# ethereum-rpc-promise

> A modern promise based node.js library for communicating with Ethereum daemon via RPC.

Latest version **2.1.3** (published 2018-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ethereum-rpc-promise
pnpm add ethereum-rpc-promise
yarn add ethereum-rpc-promise
bun add ethereum-rpc-promise
```

## 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.1.3 |
| Published | 2018-08-13 |
| First published | 2018-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | lovevialik |
| Keywords | ethereum, rpc, web3 |

## Links

- npm: https://www.npmjs.com/package/ethereum-rpc-promise
- Repository: https://github.com/vialikb/ethereum-rpc-promise
- Homepage: https://vialikb.github.io/ethereum-rpc-promise
- Issues: https://github.com/vialikb/ethereum-rpc-promise/issues
- npm.io page: https://npm.io/package/ethereum-rpc-promise

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [request](https://npm.io/package/request.md) ^2.87.0
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.5

## Recent versions

- 2.1.3 (latest) — 2018-08-13
- 2.1.2 — 2018-08-03
- 2.1.1 — 2018-08-01
- 1.0.2 — 2018-07-31
- 1.0.1 — 2018-07-31
- 1.0.0 — 2018-07-14

## README

## ethereum-rpc-promise

[![npm package](https://nodei.co/npm/ethereum-rpc-promise.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ethereum-rpc-promise/)

[![NPM version][npm-image]][npm-url]
[![Dependency Status](https://img.shields.io/david/vialikb/ethereum-rpc-promise.svg?style=flat-square)](https://david-dm.org/vialikb/ethereum-rpc-promise)
[![Known Vulnerabilities](https://snyk.io/test/npm/ethereum-rpc-promise/badge.svg?style=flat-square)](https://snyk.io/test/npm/ethereum-rpc-promise)
[![Downloads][downloads-image]][downloads-url]

[downloads-image]: https://img.shields.io/npm/dm/ethereum-rpc-promise.svg?style=flat-square
[downloads-url]: https://www.npmjs.com/package/ethereum-rpc-promise
[npm-image]: https://img.shields.io/npm/v/ethereum-rpc-promise.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/ethereum-rpc-promise

A modern promise based node.js library for communicating with Ethereum daemon.

## Install

```
npm install --save ethereum-rpc-promise
```

## Usage

Start ethereum daemon with rpc support:

```bash
./geth --rpc
```

Connect to daemon endpoint and send rpc commands:

```js
const EthereumRpc = require('ethereum-rpc-promise');

let eth = new EthereumRpc('http://localhost:8545');

// call named wrappers
eth.web3_sha3('0x12345678').then(result) => {
  console.log(result);
});

// or call raw commands
eth.call('web3_sha3', '0x12345678').then(result) => {
  console.log(result);
});

```

## Documentation

[Ethereum Wiki](https://github.com/ethereum/wiki/wiki/JSON-RPC)

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