@dexon-foundation/eth-json-rpc-infura

3.1.2 • Public • Published

eth-json-rpc-infura

json-rpc-engine middleware for infura's REST endpoints.

usage as provider

const createInfuraProvider = require('eth-json-rpc-infura/src/createProvider')
const Ethjs = require('ethjs')

const provider = createInfuraProvider({ network: 'mainnet' })
const eth = new Ethjs(provider)

usage as middleware

const createInfuraMiddleware = require('eth-json-rpc-infura')
const RpcEngine = require('json-rpc-engine')

const engine = new RpcEngine()
engine.push(createInfuraMiddleware({ network: 'ropsten' }))

Readme

Keywords

none

Package Sidebar

Install

npm i @dexon-foundation/eth-json-rpc-infura

Weekly Downloads

3

Version

3.1.2

License

ISC

Unpacked Size

96.7 kB

Total Files

6

Last publish

Collaborators

  • chaoweichiu
  • cobinhood-dev
  • boczeratul