@qryio/eosio-ship-scanner
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha20 • Public • Published

EOSIO SHiP Scanner Test

eosio-ship-scanner is a TypeScript/JavaScript component that helps receiving and parsing decoded actions and rows sent by the EOSIO State History Plugin (SHiP)

Runtime Requirements

The following is required to run it:

Usage

The basic usage is:

import { SHiPEventEmitter } from '@qryio/eosio-ship-scanner'

const emitter = new SHiPEventEmitter({
    eosioHost: 'eosio-host',
    shipPort:  8080,
    rpcPort:   8888,
    batchSize: 10
}, {
    host: 'redis-host'
})

emitter.on('action', action => {
    // process action (block and trace)
})

emitter.on('row', row => {
    // process row in table delta
})

// blocks until it starts following head
await emitter.start()

License

Code and documentation released under Apache License 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @qryio/eosio-ship-scanner

Weekly Downloads

0

Version

0.1.0-alpha20

License

Apache-2.0

Unpacked Size

821 kB

Total Files

59

Last publish

Collaborators

  • tsouza