demux-iost
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

demux-js-iost Build Status

Demux Action Reader implementations to read block and action data from IOST-based blockchains.

Installation

# Using yarn 
yarn add demux-iost
 
# Using npm 
npm install demux-iost --save

Example

Makes requests directly to a specified Node API endpoint to obtain block data.

const { IostActionReader } = require("demux-iost")
const { BaseActionWatcher } = require("demux")
const IostActionHandler = require("./IostActionHandler")
const handlerVersion = require("./handlerVersions/v1")
 
 
const actionHandler = new IostActionHandler([handlerVersion])
 
const actionReader = new IostActionReader({
  startAtBlock: 0,
  onlyIrreversible: false,
  iostEndpoint: "https://api.iost.io"
})
 
const actionWatcher = new BaseActionWatcher(actionReader, actionHandler, 250)
 
actionWatcher.watch()
 

Readme

Keywords

none

Package Sidebar

Install

npm i demux-iost

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

29.6 MB

Total Files

6300

Last publish

Collaborators

  • ark930