Skip to content

hyperdivision/openethereum-spawn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openethereum-spawn

Build Status

(formerly parity-spawn)

Usage

const OpenEthereum = require('openethereum-spawn')

main().catch(console.error)

async function main () {
  const p = new OpenEthereum({
    exec: require('openethereum-binary'),
    ipc: true,
    basePath: './data'
  })

  p.on('log', function (data) {
    console.log('openethereum log:', data)
  })

  process.on('SIGINT', () => p.kill())

  const started = await p.started
  console.log('started and operational?', started)
  const code = await p.stopped
  console.log('stopped with', code)
}

API

``

Install

npm install openethereum-spawn

License

ISC

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •