# p2b2-ethereum-extractor

> Extract blocks from the ethereum blockchain and send the information to further endpoints

Latest version **0.0.3** (published 2017-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install p2b2-ethereum-extractor
pnpm add p2b2-ethereum-extractor
yarn add p2b2-ethereum-extractor
bun add p2b2-ethereum-extractor
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-07-10 |
| First published | 2017-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Simon Buchholz, Steffen Härtlein |
| Maintainers | steffen93, nomsi |
| Keywords | blockchain, ethereum, analysis, p2p |

## Links

- npm: https://www.npmjs.com/package/p2b2-ethereum-extractor
- Repository: https://github.com/p2b2/p2b2-ethereum-extractor
- Homepage: https://github.com/p2b2/p2b2-ethereum-extractor#readme
- Issues: https://github.com/p2b2/p2b2-ethereum-extractor/issues
- npm.io page: https://npm.io/package/p2b2-ethereum-extractor

## Dependencies (5)

- [web3](https://npm.io/package/web3.md) ^0.19.0
- [winston](https://npm.io/package/winston.md) ^2.3.1
- [es6-promise](https://npm.io/package/es6-promise.md) ^4.1.0
- [p2b2-connector-neo4j](https://npm.io/package/p2b2-connector-neo4j.md) ^0.0.3
- [p2b2-connector-mongodb](https://npm.io/package/p2b2-connector-mongodb.md) ^0.0.3

## Recent versions

- 0.0.3 (latest) — 2017-07-10
- 0.0.2 — 2017-07-10
- 0.0.1 — 2017-07-10

## README

# Data extractor

Extracts data from given database connectors.

Each connector needs at least the following exported methods:

```javascript
function connect(cb) {
	//connect to database, return callback with (null,true) if successful
	cb(null, true)
}
```

```javascript
function insert(object, cb){
    //...
    //insert object into db
    cb(null, success);
}
```

```javascript
function getLastBlock(cb){
    //check db for highest block number inserted
    //return blocknumber or -1 if nothing is inserted yet.
}
```

```javascript
function disconnect(){
    //close db connection
}
```

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