reactive-steem
v0.0.5
Published
[![Build Status](https://travis-ci.org/adasq/reactive-steem.svg?branch=master)](https://travis-ci.org/adasq/reactive-steem) [![npm version](https://badge.fury.io/js/reactive-steem.svg)](https://badge.fury.io/js/reactive-steem)
Downloads
3
Readme
reactive-steem
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)
})