Skip to content

p2b2/p2b2-ethereum-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

The p2b2-ethereum-extractor takes the blocks from the ethereum chaindata and populates a mongo- as well as a neo4j-database

Resources

License

Stars

Watchers

Forks

Packages

No packages published