openethereum-spawn

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i openethereum-spawn

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

8.72 kB

Total Files

7

Last publish

Collaborators

  • emilbayes