0.0.5 • Published 5 years ago

reactive-steem v0.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

reactive-steem

Build Status npm version

Reactive Programming + STEEM

Get started

$ npm i -SE reactive-steem

Stream blocks:

const { stream } = require('reactive-steem')

stream()
    .blocks
    .subscribe(({ block }) => {
        console.log(block)
    })

Stream transactions:

const { stream, toTransaction } = require('reactive-steem')

stream()
    .blocks
    .pipe(toTransaction)
    .subscribe(({ transaction, block }) => {
        const [opType, op] = transaction.operations[0]
        console.log(opType, op)
    })