json-rpc-engine
middleware for infura's REST endpoints.
const createInfuraProvider = require('ethercore-json-rpc/src/createProvider')
const Ethjs = require('ethjs')
const provider = createInfuraProvider({ network: 'mainnet' })
const eth = new Ethjs(provider)
const createInfuraMiddleware = require('ethercore-json-rpc')
const RpcEngine = require('json-rpc-engine')
const engine = new RpcEngine()
engine.push(createInfuraMiddleware({ network: 'ropsten' }))