Skip to content

ethercore/ethercore-json-rpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eth-json-rpc-infura

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

usage as provider

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

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

usage as middleware

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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%