Neutralize Pesky Miscreants

    eth-json-rpc-infura

    5.1.0 • 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', projectId: 'example' })
    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', projectId: 'example' }))

    Keywords

    none

    Install

    npm i eth-json-rpc-infura

    DownloadsWeekly Downloads

    233,907

    Version

    5.1.0

    License

    ISC

    Unpacked Size

    8.31 kB

    Total Files

    6

    Last publish

    Collaborators

    • sethkfman
    • brad.decker
    • danfinlay
    • kumavis
    • rekmarks
    • metamaskbot
    • gudahtt