p2b2-ethereum-extractor

0.0.3 • Public • Published

Data extractor

Extracts data from given database connectors.

Each connector needs at least the following exported methods:

function connect(cb) {
    //connect to database, return callback with (null,true) if successful
    cb(null, true)
}
function insert(object, cb){
    //...
    //insert object into db
    cb(null, success);
}
function getLastBlock(cb){
    //check db for highest block number inserted
    //return blocknumber or -1 if nothing is inserted yet.
}
function disconnect(){
    //close db connection
}

Package Sidebar

Install

npm i p2b2-ethereum-extractor

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • steffen93
  • nomsi