p2b2-ethereum-extractor
v0.0.3
Published
Extract blocks from the ethereum blockchain and send the information to further endpoints
Readme
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
}